Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is a hotfix for a broken backend update job.
When using the new inlined version of
llvm-kompile
, we were incorrectly using the result ofsys::getDefaultTargetTriple()
as our target for machine code emission, rather than the consistent value selected by running Clang on an empty input file.On newer versions of macOS, this produces warnings like:
when running
llvm-kompile
. These warnings were silently absorbed by CI as they are just warnings, but they are a) noisy and b) break the K test suite when grepping for error messages in failed compilations (kompile ... 2>&1 | grep ...
).The fix is just to use our existing technique for target triple selection in the one place we weren't previously.
Additionally, the PR makes two small related changes:
llvm-kompile
is silent and doesn't pollutestderr
with extra output when it runs successfully