summaryrefslogtreecommitdiff
path: root/repo/devel/clang.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/devel/clang.xibuild')
-rw-r--r--repo/devel/clang.xibuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/repo/devel/clang.xibuild b/repo/devel/clang.xibuild
index fa4430f..c729c9a 100644
--- a/repo/devel/clang.xibuild
+++ b/repo/devel/clang.xibuild
@@ -14,6 +14,11 @@ ADDITIONAL="
prepare () {
apply_patches
+
+ # link in /usr/inlcude/llvm to include
+ ln -s /usr/include/llvm include/llvm
+ # (there should be a better way to do this, since tblgen does look in /include rather than /usr/include)
+
}
build () {
@@ -30,7 +35,7 @@ build () {
-DCMAKE_EXE_LINKER_FLAGS_RELEASE_INIT="$LDFLAGS -Wl,-z,stack-size=2097152" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_VERBOSE_MAKEFILE=OFF \
- -DCLANG_VENDOR=Alpine \
+ -DCLANG_VENDOR=XiLinux \
-DLLVM_EXTERNAL_LIT=/usr/bin/lit \
-DCLANG_BUILD_EXAMPLES=OFF \
-DCLANG_INCLUDE_DOCS=ON \
@@ -44,11 +49,10 @@ build () {
-DLLVM_ENABLE_EH=ON \
-DLLVM_ENABLE_RTTI=ON
- ninja clang-tblgen
+ ninja clang-tblgen
ninja
}
package () {
- DESTDIR=$PKG_DEST ninja -C build install
- install -m 644 build/lib/libclang.a $PKG_DEST/usr/lib
+ DESTDIR=$PKG_DEST ninja install
}