llvmPackages_18.libcxx: fix building on windows
This commit is contained in:
@@ -61,7 +61,8 @@ let
|
||||
]) ++ lib.optionals stdenv.hostPlatform.isWasm [
|
||||
"-DLIBCXXABI_ENABLE_THREADS=OFF"
|
||||
"-DLIBCXXABI_ENABLE_EXCEPTIONS=OFF"
|
||||
] ++ lib.optionals (!enableShared) [
|
||||
] ++ lib.optionals (!enableShared || stdenv.hostPlatform.isWindows) [
|
||||
# Required on Windows due to https://github.com/llvm/llvm-project/issues/55245
|
||||
"-DLIBCXXABI_ENABLE_SHARED=OFF"
|
||||
];
|
||||
|
||||
@@ -91,6 +92,9 @@ let
|
||||
"-DLIBCXX_ENABLE_THREADS=OFF"
|
||||
"-DLIBCXX_ENABLE_FILESYSTEM=OFF"
|
||||
"-DLIBCXX_ENABLE_EXCEPTIONS=OFF"
|
||||
] ++ lib.optionals stdenv.hostPlatform.isWindows [
|
||||
# https://github.com/llvm/llvm-project/issues/55245
|
||||
"-DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON"
|
||||
] ++ lib.optionals (!enableShared) [
|
||||
"-DLIBCXX_ENABLE_SHARED=OFF"
|
||||
] ++ lib.optionals (cxxabi != null && cxxabi.libName == "cxxrt") [
|
||||
|
||||
Reference in New Issue
Block a user