Skip to content

Commit

Permalink
install bolt includes, if any exist
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Jul 26, 2024
1 parent 004cdc9 commit 4f17e53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion recipes/bolt/install_bolt.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ if "%PKG_NAME%" == "libbolt-devel" (
cmake --install ./build --prefix=./temp_prefix
if %ERRORLEVEL% neq 0 exit 1
REM only bolt libraries
mkdir %LIBRARY_LIB%\cmake\llvm
move .\temp_prefix\lib\LLVMBOLT*.lib %LIBRARY_LIB%
REM copy CMake metadata
move .\temp_prefix\lib\cmake\llvm %LIBRARY_LIB%\cmake\llvm
REM unclear which headers belong to bolt, but if some are there, install
move .\temp_prefix\include %LIBRARY_INC%
) else (
REM bolt: everything else
cmake --install .\build --prefix=%LIBRARY_PREFIX%
Expand Down
4 changes: 2 additions & 2 deletions recipes/bolt/install_bolt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ mkdir temp_prefix

if [[ "${PKG_NAME}" == "libbolt-devel" ]]; then
cmake --install ./build --prefix=./temp_prefix
# only bolt libraries
mkdir -p $PREFIX/lib/cmake/llvm
mv ./temp_prefix/lib/libLLVMBOLT* $PREFIX/lib
# only on linux-64
mv ./temp_prefix/lib/libbolt* $PREFIX/lib || true
# move CMake metadata
mv ./temp_prefix/lib/cmake/llvm/* $PREFIX/lib/cmake/llvm/
# unclear which headers belong to bolt, but if some are there, install
mv ./temp_prefix/include/* $PREFIX/include/
else
# bolt: install everything else
cmake --install ./build --prefix=$PREFIX
Expand Down

0 comments on commit 4f17e53

Please sign in to comment.