Skip to content

Commit

Permalink
No shared on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Aug 9, 2019
1 parent b25514a commit 8059f3a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
3 changes: 1 addition & 2 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ cmake -G "Ninja" ^
-DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON ^
-DLLVM_ENABLE_LIBXML2=OFF ^
-DLLVM_ENABLE_ZLIB=OFF ^
-DLLVM_BUILD_LLVM_DYLIB=yes ^
-DLLVM_LINK_LLVM_DYLIB=yes ^
-DLLVM_BUILD_LLVM_C_DYLIB=no ^
%SRC_DIR%

if errorlevel 1 exit 1
Expand Down
6 changes: 4 additions & 2 deletions recipe/install_llvm.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ cd build
cmake --build . --target install
if errorlevel 1 exit 1

if "%PKG_NAME%" == "llvmdev" (
del /f %LIBRARY_BIN%\LLVM-*.dll
if "%PKG_NAME%" == "llvm-tools" (
del /f %LIBRARY_BIN%\*.dll
del /f %LIBRARY_LIB%
del /f %LIBRARY_INC%
)
18 changes: 16 additions & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ outputs:
- libcxx >={{ cxx_compiler_version }} # [osx]

# Contains the shared libraries. To make different LLVM libraries co-installable
# soversion is appended to the package name
# soversion is appended to the package name.
- name: libllvm{{ major_ver }}
script: install_llvm.sh # [not win]
script: install_llvm.bat # [win]
build:
run_exports:
- {{ pin_subpackage("libllvm" + major_ver, exact=True) }} # [not win]
requirements:
build:
- {{ compiler('cxx') }} # [not osx]
Expand All @@ -78,6 +80,18 @@ outputs:
run:
- libcxx >={{ cxx_compiler_version }} # [osx]

# This is a meta package so that people can use the latest libllvm and also
# for run_exports
- name: libllvm
build:
run_exports:
- {{ pin_subpackage("libllvm" + major_ver, exact=True) }} # [not win]
requirements:
run:
- {{ pin_subpackage("libllvm" + major_ver, exact=True) }} # [not win]
run_constrained:
- llvmdev {{ version }} # [not win]

# Contains LLVM tools
- name: llvm-tools
script: install_llvm.sh # [not win]
Expand Down

0 comments on commit 8059f3a

Please sign in to comment.