-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build ykllvm in
target/<debug|release>/ykllvm
.
Previously we tried building ykllvm in `OUT_DIR` but, unfortunately, that means when testing we can't access the Cargo variable we defined in rust-lang/cargo#10927. Previously, things accidentally worked because we also required PATH to be set to `/path/to/ykllvm/bin`, but that means you could pick up unexpected versions of clang/clang++, for example. This commit rethinks things. It builds a copy of ykllvm in `target/<debug|release>/ykllvm`. [Technically this breaks Cargo's rules, but since we're having to worm around a Cargo restriction, I think we can deal with this: if Cargo's rules change in the future, we can change the location easily enough.] `yk-config` gains `--cc` and `--cxx` flags which give the user the path to the C/C++ compiler. I've tried to keep this commit as minimal as possible: it would certainly be possible to do various bits of cleaning-up at the same time, but I think that would obscure what we're most interested in.
- Loading branch information
Showing
16 changed files
with
212 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.