Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
llvm: test package for fully standalone llvm/clang
- Loading branch information
1 parent
fb12185
commit a012a94
Showing
5 changed files
with
47 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/sh -e | ||
|
||
mkdir -p build | ||
cd build | ||
|
||
cmake \ | ||
-DCMAKE_INSTALL_PREFIX=/usr \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DLLVM_BUILD_LLVM_DYLIB=ON \ | ||
-DLLVM_LINK_LLVM_DYLIB=ON \ | ||
-DLLVM_TARGETS_TO_BUILD="host;X86;AMDGPU" \ | ||
-DLLVM_ENABLE_PROJECTS="clang;compiler-rt;libcxx;libcxxabi;libunwind" \ | ||
-DLLVM_ENABLE_RTTI=ON \ | ||
-DLLVM_HOST_TRIPLE="$(cc -dumpmachine)" \ | ||
-DLLVM_BUILD_EXAMPLES=OFF \ | ||
-DLLVM_BUILD_DOCS=OFF \ | ||
-DLLVM_BUILD_TESTS=OFF \ | ||
-DLLVM_ENABLE_LIBCXX=ON \ | ||
-DLIBCXXABI_USE_LLVM_UNWINDER=ON \ | ||
-DCOMPILER_RT_USE_BUILTINS_LIBRARY=ON \ | ||
-DLIBCXX_USE_COMPILER_RT=ON \ | ||
-DLIBCXXABI_USE_COMPILER_RT=ON \ | ||
-DLIBUNWIND_USE_COMPILER_RT=ON \ | ||
-DCOMPILER_RT_EXCLUDE_ATOMIC_BUILTIN=OFF \ | ||
-DCLANG_DEFAULT_CXX_STDLIB=libc++ \ | ||
-DCLANG_DEFAULT_RTLIB=compiler-rt \ | ||
-Wno-dev -G Ninja "$OLDPWD/llvm" | ||
|
||
ninja all | ||
DESTDIR="$1" ninja install |
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,6 @@ | ||
d6a0565cf21f22e9b4353b2eb92622e8365000a9e90a16b09b56f8157eabfe84 llvm-9.0.0.src.tar.xz | ||
7ba81eef7c22ca5da688fdf9d88c20934d2d6b40bfe150ffd338900890aa4610 cfe-9.0.0.src.tar.xz | ||
56e4cd96dd1d8c346b07b4d6b255f976570c6f2389697347a6c3dcb9e820d10e compiler-rt-9.0.0.src.tar.xz | ||
3c4162972b5d3204ba47ac384aa456855a17b5e97422723d4758251acf1ed28c libcxx-9.0.0.src.tar.xz | ||
675041783565c906ac2f7f8b2bc5c40f14d871ecfa8ade34855aa18de95530e9 libcxxabi-9.0.0.src.tar.xz | ||
976a8d09e1424fb843210eecec00a506b956e6c31adda3b0d199e945be0d0db2 libunwind-9.0.0.src.tar.xz |
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,4 @@ | ||
cmake make | ||
python make | ||
ninja | ||
zlib |
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,6 @@ | ||
https://releases.llvm.org/9.0.0/llvm-9.0.0.src.tar.xz llvm/ | ||
https://releases.llvm.org/9.0.0/cfe-9.0.0.src.tar.xz clang/ | ||
https://releases.llvm.org/9.0.0/compiler-rt-9.0.0.src.tar.xz compiler-rt/ | ||
https://releases.llvm.org/9.0.0/libcxx-9.0.0.src.tar.xz libcxx/ | ||
https://releases.llvm.org/9.0.0/libcxxabi-9.0.0.src.tar.xz libcxxabi/ | ||
https://releases.llvm.org/9.0.0/libunwind-9.0.0.src.tar.xz libunwind/ |
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.0.0 1 |