Remove -nostdlibinc flag from clang when building for android-prebuilt#389028
Remove -nostdlibinc flag from clang when building for android-prebuilt#389028alexfmpe merged 1 commit intoNixOS:masterfrom
Conversation
|
cc @pwaller (apparenty can't add as reviewer?) |
|
Is this the prebuilt Android toolchain? It presumably regressed because it was previously in an LLVM patch, which don’t get applied to prebuilt toolchains. |
pwaller
left a comment
There was a problem hiding this comment.
Not knowing much about the android toolchain and how it is wired in nixpkgs, looks like a reasonable fix to me to get things working again at least.
The with -nostdlibinc nix cc wrapper assumes that it is feeding the stdlib paths into the compiler. If that's not the case, as appears here, then -nostdinc is not wanted.
|
This PR broke the linter CI. Going to provide a fix now. |
|
Fix @ #402978 |
Issue introduced in NixOS#389028
|
Thank you for the PR, but next time make sure to follow the commit convention and PR title, I think this would have been avoided. In the meantime, don't worry, I've fixed it. |
|
Oh lint was green when I first opened, didn't notice there were new nix-fmt rules since then.
Do you mean prefixing with |
#356162 caused
libffi,gmp,helloand likely others to fail forpkgsCross.aarch64-android-prebuiltwith errors about standard headers.Looking at the pre-existing comment, I don't see how my
/usr/includewould be relevant given I'm building from nixos, so it's likely this is sysroot related, and indeed the standard files can be seen inIIUC this is a workaround that actually re-introduces the leaking concern for non-nixos, but I don't know what the proper fix is nor why this surfaced on android in particular.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.