Merge staging-next into staging
This commit is contained in:
@@ -812,11 +812,17 @@ stdenv.mkDerivation ({
|
||||
// optionalAttrs (postPhases != []) { inherit postPhases; }
|
||||
// optionalAttrs (stdenv.buildPlatform.libc == "glibc"){ LOCALE_ARCHIVE = "${glibcLocales}/lib/locale/locale-archive"; }
|
||||
|
||||
# Implicit pointer to integer conversions are errors by default since clang 15.
|
||||
# Works around https://gitlab.haskell.org/ghc/ghc/-/issues/23456.
|
||||
// lib.optionalAttrs stdenv.cc.isClang {
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=int-conversion";
|
||||
}
|
||||
|
||||
# Ensure libc++abi is linked even when clang is invoked as just `clang` or `cc`.
|
||||
# Works around https://github.com/NixOS/nixpkgs/issues/166205.
|
||||
# This can be dropped once a fix has been committed to cc-wrapper.
|
||||
// lib.optionalAttrs (stdenv.cc.isClang && stdenv.cc.libcxx != null) {
|
||||
env.NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}";
|
||||
NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}";
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
@@ -18,12 +18,6 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
hash = "sha256-uNGrTNg5G5xFGtc+BSWE389x0tQ/KxJQLHfebNWas/k=";
|
||||
};
|
||||
|
||||
patches = lib.optionals stdenv.isDarwin [
|
||||
# Don’t propagate the path to CoreFoundation. Otherwise, it’s impossible to build packages
|
||||
# that require a different SDK other than the default one.
|
||||
./cmake-core-foundation.patch
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DABSL_BUILD_TEST_HELPERS=ON"
|
||||
"-DABSL_USE_EXTERNAL_GOOGLETEST=ON"
|
||||
|
||||
@@ -65,6 +65,9 @@ stdenv.mkDerivation rec {
|
||||
postPatch = ''
|
||||
mkdir -p build/externals/src/ep_catch
|
||||
ln -sf ${catch2}/include/catch2 build/externals/src/ep_catch/single_include
|
||||
|
||||
sed -i '38i list(APPEND OPENSSL_PATHS "${openssl.dev}" "${openssl.out}")' \
|
||||
cmake/Modules/FindOpenSSL_EP.cmake
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
@@ -290,6 +290,24 @@ in buildPythonPackage rec {
|
||||
# error: cast from ... to ... converts to incompatible function type [-Werror,-Wcast-function-type-strict]
|
||||
++ lib.optionals (stdenv.cc.isClang && lib.versionAtLeast stdenv.cc.version "16") [
|
||||
"-Wno-error=cast-function-type-strict"
|
||||
# Suppresses the most spammy warnings.
|
||||
# This is mainly to fix https://github.com/NixOS/nixpkgs/issues/266895.
|
||||
] ++ lib.optionals rocmSupport [
|
||||
"-Wno-#warnings"
|
||||
"-Wno-cpp"
|
||||
"-Wno-unknown-warning-option"
|
||||
"-Wno-ignored-attributes"
|
||||
"-Wno-deprecated-declarations"
|
||||
"-Wno-defaulted-function-deleted"
|
||||
"-Wno-pass-failed"
|
||||
] ++ [
|
||||
"-Wno-unused-command-line-argument"
|
||||
"-Wno-maybe-uninitialized"
|
||||
"-Wno-uninitialized"
|
||||
"-Wno-array-bounds"
|
||||
"-Wno-stringop-overflow"
|
||||
"-Wno-free-nonheap-object"
|
||||
"-Wno-unused-result"
|
||||
]));
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
Reference in New Issue
Block a user