FreeBSD doesn't ship with gcc by default anymore, so some bugpoint tests fail on a stock installation.
In D12273 I proposed to XFAIL the tests on FreeBSD, but Hal replied proposing to fallback on clang if gcc is not available.
This patch implements the proposed logic. Hal, I listed you as reviewer because you're the one that came up with this idea and apparently Bugpoint is currently unowned. Feel free to remove yourself and/or suggest somebody else that should review this.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Changing GCCBinary in here looks odd. It would be particularly odd if the --gcc option was given.
How about changing the default of the option to "" and in main setting it to "gcc" or "clang" if the user didn't pass -gcc?