-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
llvmPackages.llvm: avoid build directory references #430776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: staging
Are you sure you want to change the base?
Conversation
Otherwise we need `llvm-config(1)` to be able to find libraries in the build directory, which means its binary has to include references to the build directory, which means the build directory leaks into the outputs.
284dd08
to
d58d153
Compare
|
-set(LLVM_SRC_ROOT ${LLVM_MAIN_SRC_DIR}) | ||
-set(LLVM_OBJ_ROOT ${LLVM_BINARY_DIR}) | ||
+set(LLVM_SRC_ROOT "/no-such-path") | ||
+set(LLVM_OBJ_ROOT "/no-such-path") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think they'd accept a patch to disable embedding this upstream?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can try but I'd doubt it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm guessing no, because the paths are used when it detects that it's being used to link things from inside the build tree - precisely to make tests work without installing, lresumably. FWIW, Buildroot patches this out too, and we already hack up llvm-config(1)
a bit in our gnu-install-dirs.patch
.
Possibly they'd be open to it as an opt-in flag?
Things done
passthru.tests
.nixpkgs-review
on this PR. See nixpkgs-review usage../result/bin/
.Add a 👍 reaction to pull requests you find important.