Merge pull request #329961 from ExpidusOS/fix/pkgsllvm/boost

boost{,-build}: fix building with llvm
This commit is contained in:
tomberek
2024-08-16 02:15:21 -04:00
committed by GitHub
4 changed files with 32 additions and 2 deletions
@@ -0,0 +1,14 @@
--- a/tools/build/src/tools/clang.jam 2024-07-25 10:38:16.278401900 -0700
+++ b/tools/build/src/tools/clang.jam 2024-07-25 10:38:52.659750666 -0700
@@ -90,11 +90,6 @@
case x86-64 : arch = x86_64 ;
case x86-32 : arch = i386 ;
}
-
- toolset.flags $(toolset)
- OPTIONS $(condition)/<target-os>$(target-os)/<architecture>$(_architecture_)/<address-model>$(_address-model_)
- : "--target=$(arch)-$(vendor-sys)"
- : unchecked ;
}
}
}
+2 -1
View File
@@ -150,7 +150,8 @@ stdenv.mkDerivation {
stripLen = 1;
extraPrefix = "libs/python/";
})
];
]
++ lib.optional (lib.versionAtLeast version "1.81" && stdenv.cc.isClang) ./fix-clang-target.patch;
meta = with lib; {
homepage = "http://boost.org/";
@@ -33,7 +33,8 @@ stdenv.mkDerivation {
sourceRoot="$sourceRoot/tools/build"
'';
patches = useBoost.boostBuildPatches or [];
patches = useBoost.boostBuildPatches or []
++ lib.optional (useBoost ? version && lib.versionAtLeast useBoost.version "1.81") ./fix-clang-target.patch;
# Upstream defaults to gcc on darwin, but we use clang.
postPatch = ''
@@ -0,0 +1,14 @@
--- a/src/tools/clang.jam 2024-07-25 10:38:16.278401900 -0700
+++ b/src/tools/clang.jam 2024-07-25 10:38:52.659750666 -0700
@@ -90,11 +90,6 @@
case x86-64 : arch = x86_64 ;
case x86-32 : arch = i386 ;
}
-
- toolset.flags $(toolset)
- OPTIONS $(condition)/<target-os>$(target-os)/<architecture>$(_architecture_)/<address-model>$(_address-model_)
- : "--target=$(arch)-$(vendor-sys)"
- : unchecked ;
}
}
}