From 38155a02af3d3f4c77c3418a9b0e239b78f7e3d2 Mon Sep 17 00:00:00 2001 From: h-vetinari Date: Wed, 4 Oct 2023 21:59:17 +0200 Subject: [PATCH] Use compiler-rt from BUILD_PREFIX on windows Co-authored-by: Isuru Fernando --- recipe/bld.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe/bld.bat b/recipe/bld.bat index ed30c366..987d60e1 100644 --- a/recipe/bld.bat +++ b/recipe/bld.bat @@ -25,7 +25,7 @@ FOR /F "tokens=* USEBACKQ" %%F IN (`clang.exe -dumpversion`) DO ( :: https://github.com/llvm/llvm-project/issues/63741 set "FFLAGS=-D_CRT_SECURE_NO_WARNINGS -D_MT -D_DLL --target=x86_64-pc-windows-msvc -nostdlib" set "LDFLAGS=--target=x86_64-pc-windows-msvc -nostdlib -Xclang --dependent-lib=msvcrt -fuse-ld=lld" -set "LDFLAGS=%LDFLAGS% -Wl,-defaultlib:%LIBRARY_PREFIX%/lib/clang/!CLANG_VER!/lib/windows/clang_rt.builtins-x86_64.lib" +set "LDFLAGS=%LDFLAGS% -Wl,-defaultlib:%BUILD_PREFIX%/Library/lib/clang/!CLANG_VER!/lib/windows/clang_rt.builtins-x86_64.lib" :: see explanation here: :: https://github.com/conda-forge/scipy-feedstock/pull/253#issuecomment-1732578945