Skip to content

Commit

Permalink
make sure target folders exist; no need to depend on libllvm
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Jul 11, 2024
1 parent db08b91 commit 7c9851b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions recipe/install_llvm.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ if "%PKG_NAME%" == "libllvm-c%PKG_VERSION:~0,2%" (
cmake --install ./build --prefix=./temp_prefix
if %ERRORLEVEL% neq 0 exit 1
REM only bolt libraries
mkdir %LIBRARY_LIB%
move .\temp_prefix\lib\LLVMBOLT*.lib %LIBRARY_LIB%
) else if "%PKG_NAME%" == "bolt" (
cmake --install ./build --prefix=./temp_prefix
if %ERRORLEVEL% neq 0 exit 1
REM only bolt
mkdir %LIBRARY_BIN%
move .\temp_prefix\bin\llvm-bolt*.exe %LIBRARY_BIN%
) else if "%PKG_NAME%" == "llvm-tools" (
cmake --install ./build --prefix=./temp_prefix
Expand Down
2 changes: 2 additions & 0 deletions recipe/install_llvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ elif [[ "${PKG_NAME}" == libllvm* ]]; then
elif [[ "${PKG_NAME}" == "libbolt" ]]; then
cmake --install ./build --prefix=./temp_prefix
# only bolt libraries
mkdir -p $PREFIX/lib
mv ./temp_prefix/lib/libLLVMBOLT* $PREFIX/lib
elif [[ "${PKG_NAME}" == "bolt" ]]; then
cmake --install ./build --prefix=./temp_prefix
# only bolt
mkdir -p $PREFIX/bin
mv ./temp_prefix/bin/llvm-bolt* $PREFIX/bin
elif [[ "${PKG_NAME}" == "llvm-tools" ]]; then
cmake --install ./build --prefix=./temp_prefix
Expand Down
3 changes: 0 additions & 3 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,9 @@ outputs:
- libcxx {{ cxx_compiler_version }} # [osx]
host:
- libcxx {{ cxx_compiler_version }} # [osx]
- {{ pin_subpackage("libllvm" + major_ver, exact=True) }}
- libxml2
- zlib
- zstd
run:
- {{ pin_subpackage("libllvm" + major_ver, exact=True) }}
- {{ pin_subpackage("libbolt", exact=True) }}
run_constrained:
- llvm {{ version }}
Expand Down

0 comments on commit 7c9851b

Please sign in to comment.