rocmPackages.llvm.clang: remove -nostdlibinc flag (#370180)

This commit is contained in:
Mauricio Collares
2025-01-03 20:32:27 +01:00
committed by GitHub
5 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -639,7 +639,7 @@ stdenvNoCC.mkDerivation {
# no `/usr/include`, theres 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