From ab86b9b730f43b1b3302a0fc073585c6471f240e Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Mon, 31 Jul 2023 15:49:50 +1100 Subject: [PATCH] fix install-path on windows --- recipe/bld.bat | 4 ++++ recipe/meta.yaml | 14 ++++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/recipe/bld.bat b/recipe/bld.bat index 513ac1c..c1b467d 100644 --- a/recipe/bld.bat +++ b/recipe/bld.bat @@ -3,6 +3,10 @@ mkdir build cd build +:: cut off any extensions after "XY.0.0"; +:: mainly aimed at ".rcX", which is not part of the installation path +set PKG_VERSION=%PKG_VERSION:~0,-4% + set BUILD_CONFIG=Release set "CC=clang-cl.exe" set "CXX=clang-cl.exe" diff --git a/recipe/meta.yaml b/recipe/meta.yaml index d7ccf65..79d5f7a 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -14,7 +14,7 @@ source: - patches/0002-compiler-rt-Make-7.0.0-compatible-with-10.9-SDK.patch build: - number: 0 + number: 1 requirements: build: @@ -51,7 +51,8 @@ outputs: test: commands: - echo {{ MACOSX_DEPLOYMENT_TARGET|default("10.9") }} - - test -f $PREFIX/lib/clang/{{ prod_ver }}/lib/darwin/libclang_rt.osx.a # [osx] + - test -f $PREFIX/lib/clang/{{ prod_ver }}/lib/darwin/libclang_rt.osx.a # [osx] + - if not exist %PREFIX%\lib\clang\{{ prod_ver }}\lib\windows\clang_rt.builtins-x86_64.lib # [win] - name: compiler-rt requirements: @@ -65,9 +66,9 @@ outputs: files: - lib/clang/{{ prod_ver }}/share # [unix] - lib/clang/{{ prod_ver }}/include # [unix] - - Library/lib/clang/{{ version }}/share # [win] - - Library/lib/clang/{{ version }}/include # [win] - - Library/lib/clang/{{ version }}/lib # [win] + - Library\lib\clang\{{ prod_ver }}\share # [win] + - Library\lib\clang\{{ prod_ver }}\include # [win] + - Library\lib\clang\{{ prod_ver }}\lib # [win] test: # files: # - test.c.in @@ -75,7 +76,8 @@ outputs: # {% set NEW_TARGET="10." ~ (((MACOSX_DEPLOYMENT_TARGET|default("10.13")).split(".")[1])|int + 1) %} # - sed "s/@MACOSX_DEPLOYMENT_TARGET@/{{ NEW_TARGET }}/g" test.c.in > test.c # - clang -mmacosx-version-min={{ MACOSX_DEPLOYMENT_TARGET }} test.c # [osx] - - test -f $PREFIX/lib/clang/{{ prod_ver }}/include/sanitizer/asan_interface.h # [unix] + - test -f $PREFIX/lib/clang/{{ prod_ver }}/include/sanitizer/asan_interface.h # [unix] + - if not exist %LIBRARY_LIB%\clang\{{ prod_ver }}\lib\windows\clang_rt.builtins-x86_64.lib # [win] about: home: http://llvm.org/