rocmPackages.llvm.clang: remove -nostdlibinc flag (#370180)
This commit is contained in:
@@ -639,7 +639,7 @@ stdenvNoCC.mkDerivation {
|
||||
# no `/usr/include`, there’s essentially no risk to dropping
|
||||
# the flag there. See discussion in NixOS/nixpkgs#191152.
|
||||
#
|
||||
+ optionalString ((cc.isClang or false) && !targetPlatform.isDarwin) ''
|
||||
+ optionalString ((cc.isClang or false) && !(cc.isROCm or false) && !targetPlatform.isDarwin) ''
|
||||
echo " -nostdlibinc" >> $out/nix-support/cc-cflags
|
||||
''
|
||||
|
||||
|
||||
@@ -180,6 +180,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
passthru = {
|
||||
isLLVM = targetDir == "llvm";
|
||||
isClang = targetDir == "clang" || builtins.elem "clang" targetProjects;
|
||||
isROCm = true;
|
||||
|
||||
updateScript = rocmUpdateScript {
|
||||
name = finalAttrs.pname;
|
||||
|
||||
@@ -40,8 +40,11 @@ wrapCCWith rec {
|
||||
'';
|
||||
|
||||
passthru.isClang = true;
|
||||
passthru.isROCm = true;
|
||||
});
|
||||
|
||||
gccForLibs = stdenv.cc.cc;
|
||||
|
||||
extraPackages = [
|
||||
llvm
|
||||
lld
|
||||
|
||||
@@ -188,6 +188,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
passthru = {
|
||||
isLLVM = targetDir == "llvm";
|
||||
isClang = targetDir == "clang" || builtins.elem "clang" targetProjects;
|
||||
isROCm = true;
|
||||
|
||||
updateScript = rocmUpdateScript {
|
||||
name = finalAttrs.pname;
|
||||
|
||||
@@ -40,8 +40,11 @@ wrapCCWith rec {
|
||||
'';
|
||||
|
||||
passthru.isClang = true;
|
||||
passthru.isROCm = true;
|
||||
});
|
||||
|
||||
gccForLibs = stdenv.cc.cc;
|
||||
|
||||
extraPackages = [
|
||||
llvm
|
||||
lld
|
||||
|
||||
Reference in New Issue
Block a user