Move other scripts to my scripts collection.
parent
736bd42b5b
commit
33ade274d9
|
@ -1,21 +0,0 @@
|
||||||
#!/usr/bin/env sh
|
|
||||||
|
|
||||||
# Build Clang from source.
|
|
||||||
# Run this from within the llvm-project directory
|
|
||||||
|
|
||||||
# https://llvm.org/docs/CMake.html
|
|
||||||
# From their wiki, potential values for Projects includes
|
|
||||||
# clang;clang-tools-extra;compiler-rt;cross-project-tests;libc;libclc;libcxx;libcxxabi;libunwind;lld;lldb;openmp;parallel-libs;polly;pstl
|
|
||||||
|
|
||||||
INSTALL_DIR=$HOME/usr/local
|
|
||||||
mkdir -p $INSTALL_DIR
|
|
||||||
|
|
||||||
cmake -S llvm -B build -G Ninja \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=$INSTALL_DIR \
|
|
||||||
-DLLVM_ENABLE_PROJECTS="llvm;clang;openmp"
|
|
||||||
|
|
||||||
cd build
|
|
||||||
ninja
|
|
||||||
|
|
||||||
cmake --install ./
|
|
|
@ -1,18 +0,0 @@
|
||||||
#!/usr/bin/env sh
|
|
||||||
|
|
||||||
set -o errexit
|
|
||||||
|
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
|
|
||||||
# Source common settings
|
|
||||||
#. $HOME/usr/local/share/config.site
|
|
||||||
|
|
||||||
# Configure
|
|
||||||
cmake .. -G Ninja \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=$HOME/usr/local \
|
|
||||||
$@
|
|
||||||
|
|
||||||
# Build
|
|
||||||
ninja
|
|
Loading…
Reference in New Issue