Skip to content

Commit

Permalink
fix install-path on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Jul 31, 2023
1 parent 4ec0d42 commit ab86b9b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
14 changes: 8 additions & 6 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -65,17 +66,18 @@ 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
commands:
# {% 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/
Expand Down

0 comments on commit ab86b9b

Please sign in to comment.