Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake \
- -DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \
- -DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG" \
- -DCMAKE_Fortran_FLAGS_RELEASE:STRING="-DNDEBUG" \
- -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
- -DCMAKE_INSTALL_PREFIX:PATH=${PREFIX} \
- -DINCLUDE_INSTALL_DIR:PATH=${PREFIX}/include \
- -DLIB_INSTALL_DIR:PATH={$PREFIX}/lib64 \
- -DSYSCONF_INSTALL_DIR:PATH=${PREFIX}/etc \
- -DSHARE_INSTALL_PREFIX:PATH=${PREFIX}/share \
- -DLIB_SUFFIX=64 \
- -DBUILD_SHARED_LIBS:BOOL=ON \
- -DBUILD_SHARED_LIBS:BOOL=OFF \
- -G Ninja \
- -DCMAKE_C_COMPILER=gcc \
- -DCMAKE_CXX_COMPILER=g++ \
- -DCMAKE_BUILD_TYPE=RelWithDebInfo \
- -DLLVM_TARGETS_TO_BUILD=X86 \
- -DLLVM_ENABLE_DOXYGEN=0 \
- -DLLVM_ENABLE_OCAMLDOC:BOOL=OFF \
- -DLLVM_ENABLE_BINDINGS:BOOL=OFF \
- -DLIBCXX_ENABLE_STATIC:BOOL=OFF \
- -DLLVM_ENABLE_PEDANTIC:BOOL=ON \
- -DLLVM_ENABLE_SPHINX=0 \
- -DLLVM_BUILD_LLVM_DYLIB=1 \
- -DLLVM_OPTIMIZED_TABLEGEN=1 \
- -DLLVM_PARALLEL_COMPILE_JOBS=8 \
- -DLLVM_PARALLEL_LINK_JOBS=8 \
- -DPYTHON_EXECUTABLE=/usr/bin/python3 \
- -DLLVM_ENABLE_CXX1Z:BOOL=ON \
- -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;compiler-rt;debuginfo-tests;libcxx;libcxxabi;libunwind;lld;lldb" \
- ../llvm-project/llvm
- # -DLLVM_ENABLE_LLD:BOOL=ON \
- # -DLLVM_ENABLE_LIBCXX:BOOL=ON \
- ln -s lib lib64
- ninja check-all
- ninja install
- ==========
- FLAGS = -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++1z -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -std=c++11 -Wno-unused-parameter -O2 -g -DNDEBUG -m64 -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fvisibility=hidden -fno-lto -O3 -g -Wno-variadic-macros -Wno-non-virtual-dtor -fno-rtti
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement