Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/bash
- mkdir llvm/build2
- cd llvm/build2
- rm -rf ./*
- export ORIG=/mnt/nvme/omenos/usr1
- export BUILDERDIR=/mnt/nvme/omenos/usr
- export PATH=${BUILDERDIR}/bin:${ORIG}/bin:${PATH}
- export LD_LIBRARY_PATH=${BUILDERDIR}/lib:${ORIG}/lib
- export PYTHONPATH=${BUILDERDIR}/lib64/python3.6:${ORIG}/lib64/python3.6:/usr/lib64/python3.6:/usr/lib/python3.6
- # cmake -G Ninja \
- # -DCMAKE_INSTALL_PREFIX=${BUILDERDIR} \
- # -DCMAKE_BUILD_TYPE="RelWithDebInfo" \
- # -DCMAKE_C_COMPILER="gcc" \
- # -DCMAKE_CXX_COMPILER="g++" \
- # -DCMAKE_CXX_STANDARD="14"\
- # -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;libcxx;libcxxabi;libunwind;lldb;compiler-rt;lld;pstl;polly;openmp" \
- # -DLLVM_TARGETS_TO_BUILD="X86" \
- # -DLLVM_BUILD_TESTS=ON \
- # -DLLVM_INCLUDE_DOCS=OFF \
- # -DLLVM_ENABLE_OCAMLDOC=OFF \
- # -DLLVM_ENABLE_BINDINGS=ON \
- # -DLLVM_LINK_LLVM_DYLIB=ON \
- # -DLLVM_BUILD_STATIC=OFF \
- # -DLLVM_INSTALL_BINUTILS_SYMLINKS=ON \
- # -DLLVM_INSTALL_CCTOOLS_SYMLINKS=ON \
- # -DLLVM_INSTALL_UTILS=ON \
- # -DC_INCLUDE_DIRS="${BUILDERDIR}/include:/usr/include" \
- # -DLIBCXX_ENABLE_STATIC=OFF \
- # -DLIBCXX_ENABLE_EXPERIMENTAL_LIBRARY=OFF \
- # -DLIBCXXABI_LINK_TESTS_WITH_SHARED_LIBCXX=ON \
- # -DLIBCXXABI_ENABLE_STATIC=OFF \
- # -DLLDB_ENABLE_PYTHON=ON \
- # -DLLDB_ENABLE_LUA=ON \
- # -DLIBUNWIND_ENABLE_STATIC=OFF \
- # ../llvm
- # cmake -G Ninja \
- # -DCMAKE_INSTALL_PREFIX=${BUILDERDIR} \
- # -DCMAKE_BUILD_TYPE="RelWithDebInfo" \
- # -DCMAKE_C_COMPILER="clang" \
- # -DCMAKE_CXX_COMPILER="clang++" \
- # -DCMAKE_CXX_STANDARD="14" \
- # -DCMAKE_PREFIX_PATH="${BUILDERDIR}:${ORIG}:${CMAKE_PREFIX_PATH}" \
- # -DCMAKE_INCLUDE_PATH="${BUILDERDIR}/include:${ORIG}/include:${CMAKE_INCLUDE_PATH}" \
- # -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;libcxx;libcxxabi;libunwind;lldb;compiler-rt;lld;pstl;polly;openmp" \
- # -DLLVM_TARGETS_TO_BUILD="X86" \
- # -DLLVM_BUILD_TESTS=ON \
- # -DLLVM_INCLUDE_DOCS=OFF \
- # -DLLVM_ENABLE_OCAMLDOC=OFF \
- # -DLLVM_ENABLE_BINDINGS=ON \
- # -DLLVM_LINK_LLVM_DYLIB=ON \
- # -DLLVM_BUILD_STATIC=OFF \
- # -DLLVM_INSTALL_BINUTILS_SYMLINKS=ON \
- # -DLLVM_INSTALL_CCTOOLS_SYMLINKS=ON \
- # -DLLVM_INSTALL_UTILS=ON \
- # -DLLVM_ENABLE_LIBCXX=ON \
- # -DLLVM_ENABLE_LLD=ON \
- # -DCLANG_DEFAULT_RTLIB="compiler-rt" \
- # -DCLANG_DEFAULT_UNWINDLIB="libunwind" \
- # -DCLANG_DEFAULT_LINKER="lld" \
- # -DCLANG_DEFAULT_CXX_STDLIB="libc++" \
- # -DCLANG_DEFAULT_STD_C="c17" \
- # -DCLANG_DEFAULT_STD_CXX="cxx14" \
- # -DC_INCLUDE_DIRS="${BUILDERDIR}/include:${ORIG}/include:/usr/include" \
- # -DLIBCXX_STANDALONE_BUILD=OFF \
- # -DLIBCXX_ENABLE_STATIC=OFF \
- # -DLIBCXX_ENABLE_EXPERIMENTAL_LIBRARY=OFF \
- # -DLIBCXX_CXX_ABI="libcxxabi" \
- # -DLIBCXX_USE_COMPILER_RT=ON \
- # -DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=OFF \
- # -DLIBCXX_CXX_ABI_INCLUDE_PATHS="${ORIG}/include/c++/v1" \
- # -DLIBCXXABI_STANDALONE_BUILD=OFF \
- # -DLIBCXXABI_LINK_TESTS_WITH_SHARED_LIBCXX=ON \
- # -DLIBCXXABI_ENABLE_STATIC=OFF \
- # -DLIBCXXABI_USE_LLVM_UNWINDER=ON \
- # -DLIBCXXABI_USE_COMPILER_RT=ON \
- # -DLLDB_BUILT_STANDALONE=OFF \
- # -DLLDB_ENABLE_PYTHON=ON \
- # -DLLDB_ENABLE_LUA=ON \
- # -DLIBUNWIND_STANDALONE_BUILD=OFF \
- # -DLIBUNWIND_ENABLE_SHARED=ON \
- # -DLIBUNWIND_ENABLE_STATIC=OFF \
- # -DLIBUNWIND_USE_COMPILER_RT=ON \
- # -DSANITIZER_CXX_ABI="libc++" \
- # -DSANITIZER_TEST_CXX="libc++" \
- # -DCOMPILER_RT_USE_BUILTINS_LIBRARY=ON \
- # -DCOMPILER_RT_STANDALONE_BUILD=OFF \
- # -DOPENMP_STANDALONE_BUILD=OFF \
- # ../llvm
- cmake -G Ninja \
- -DCMAKE_INSTALL_PREFIX=${BUILDERDIR} \
- -DCMAKE_BUILD_TYPE="RelWithDebInfo" \
- -DCMAKE_C_COMPILER="clang" \
- -DCMAKE_CXX_COMPILER="clang++" \
- -DCMAKE_CXX_STANDARD="14" \
- -DCMAKE_PREFIX_PATH="${BUILDERDIR}:${ORIG}:${CMAKE_PREFIX_PATH}" \
- -DCMAKE_INCLUDE_PATH="${BUILDERDIR}/include:${ORIG}/include:${CMAKE_INCLUDE_PATH}" \
- -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;libcxx;libcxxabi;libunwind;lldb;compiler-rt;lld;pstl;polly;openmp" \
- -DLLVM_TARGETS_TO_BUILD="X86" \
- -DLLVM_BUILD_TESTS=ON \
- -DLLVM_INCLUDE_DOCS=OFF \
- -DLLVM_ENABLE_OCAMLDOC=OFF \
- -DLLVM_ENABLE_BINDINGS=ON \
- -DLLVM_LINK_LLVM_DYLIB=ON \
- -DLLVM_BUILD_STATIC=OFF \
- -DLLVM_INSTALL_BINUTILS_SYMLINKS=ON \
- -DLLVM_INSTALL_CCTOOLS_SYMLINKS=ON \
- -DLLVM_INSTALL_UTILS=ON \
- -DLLVM_ENABLE_LIBCXX=ON \
- -DLLVM_ENABLE_LLD=ON \
- -DCLANG_DEFAULT_RTLIB="compiler-rt" \
- -DCLANG_DEFAULT_UNWINDLIB="libunwind" \
- -DCLANG_DEFAULT_LINKER="lld" \
- -DCLANG_DEFAULT_CXX_STDLIB="libc++" \
- -DCLANG_DEFAULT_STD_C="c17" \
- -DCLANG_DEFAULT_STD_CXX="cxx14" \
- -DC_INCLUDE_DIRS="${BUILDERDIR}/include:${ORIG}/include:/usr/include" \
- -DLIBCXX_STANDALONE_BUILD=OFF \
- -DLIBCXX_ENABLE_STATIC=OFF \
- -DLIBCXX_ENABLE_EXPERIMENTAL_LIBRARY=OFF \
- -DLIBCXX_CXX_ABI="libcxxabi" \
- -DLIBCXX_USE_COMPILER_RT=ON \
- -DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=OFF \
- -DLIBCXX_CXX_ABI_INCLUDE_PATHS="${ORIG}/include/c++/v1" \
- -DLIBCXXABI_STANDALONE_BUILD=OFF \
- -DLIBCXXABI_LINK_TESTS_WITH_SHARED_LIBCXX=ON \
- -DLIBCXXABI_ENABLE_STATIC=OFF \
- -DLIBCXXABI_USE_LLVM_UNWINDER=ON \
- -DLIBCXXABI_USE_COMPILER_RT=ON \
- -DLLDB_BUILT_STANDALONE=OFF \
- -DLLDB_ENABLE_PYTHON=ON \
- -DLLDB_ENABLE_LUA=ON \
- -DLIBUNWIND_STANDALONE_BUILD=OFF \
- -DLIBUNWIND_ENABLE_SHARED=ON \
- -DLIBUNWIND_ENABLE_STATIC=OFF \
- -DLIBUNWIND_USE_COMPILER_RT=ON \
- -DSANITIZER_CXX_ABI="libc++" \
- -DSANITIZER_TEST_CXX="libc++" \
- -DCOMPILER_RT_USE_BUILTINS_LIBRARY=ON \
- -DCOMPILER_RT_STANDALONE_BUILD=OFF \
- -DOPENMP_STANDALONE_BUILD=OFF \
- ../llvm
- sleep 10
- ninja -j8
- #ninja install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement