diff options
author | davidovski <david@davidovski.xyz> | 2022-03-06 15:21:10 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-03-06 15:21:10 +0000 |
commit | 75e7bb9c72d562d397f9fb62072ab114cfbc6244 (patch) | |
tree | c2af33a2c487d2b411e3be0900f675c41ca5ab4f /repo/devel/clang.xibuild | |
parent | ce1ac2b89b42e4e05ba706b7bbdcc39cd2e64e8b (diff) |
fixed python compilation for js78
Diffstat (limited to 'repo/devel/clang.xibuild')
-rw-r--r-- | repo/devel/clang.xibuild | 12 |
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 } |