-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from isuruf/shared
Build shared libraries as well
- Loading branch information
Showing
7 changed files
with
158 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
cd build | ||
cmake --build . --target install | ||
if errorlevel 1 exit 1 | ||
|
||
if "%PKG_NAME%" == "llvm-tools" ( | ||
del /f %LIBRARY_BIN%\*.dll | ||
rmdir /S /Q %LIBRARY_LIB% | ||
rmdir /S /Q %LIBRARY_INC% | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
cd build | ||
make install | ||
|
||
IFS='.' read -ra VER_ARR <<< "$PKG_VERSION" | ||
|
||
if [[ "${PKG_NAME}" == libllvm* ]]; then | ||
rm -rf $PREFIX/bin | ||
rm -rf $PREFIX/include | ||
rm -rf $PREFIX/share | ||
mv $PREFIX/lib $PREFIX/lib2 | ||
mkdir -p $PREFIX/lib | ||
mv $PREFIX/lib2/libLLVM-${VER_ARR[0]}${SHLIB_EXT} $PREFIX/lib | ||
mv $PREFIX/lib2/lib*.so.${VER_ARR[0]} $PREFIX/lib || true | ||
mv $PREFIX/lib2/lib*.${VER_ARR[0]}.dylib $PREFIX/lib || true | ||
rm -rf $PREFIX/lib2 | ||
elif [[ "${PKG_NAME}" == "llvm-tools" ]]; then | ||
rm -rf $PREFIX/lib | ||
rm -rf $PREFIX/include | ||
rm $PREFIX/bin/llvm-config | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters