llvmPackages_18.compiler-rt: fix building on windows

This commit is contained in:
seth
2024-11-06 17:29:28 -05:00
parent b57c78d026
commit ad338630ff
@@ -41,8 +41,8 @@ let
# use clean up the `cmakeFlags` rats nest below.
haveLibcxx = stdenv.cc.libcxx != null;
isDarwinStatic = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isStatic && lib.versionAtLeast release_version "16";
inherit (stdenv.hostPlatform) isMusl isAarch64;
noSanitizers = !haveLibc || bareMetal || isMusl || isDarwinStatic;
inherit (stdenv.hostPlatform) isMusl isAarch64 isWindows;
noSanitizers = !haveLibc || bareMetal || isMusl || isDarwinStatic || isWindows;
baseName = "compiler-rt";
pname = baseName + lib.optionalString (haveLibc) "-libc";