Advertisement
mroche

Untitled

Sep 10th, 2019
501
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.10 KB | None | 0 0
  1. cmake \
  2.         -DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \
  3.         -DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG" \
  4.         -DCMAKE_Fortran_FLAGS_RELEASE:STRING="-DNDEBUG" \
  5.         -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
  6.         -DCMAKE_INSTALL_PREFIX:PATH=${PREFIX} \
  7.         -DINCLUDE_INSTALL_DIR:PATH=${PREFIX}/include \
  8.         -DLIB_INSTALL_DIR:PATH={$PREFIX}/lib64 \
  9.         -DSYSCONF_INSTALL_DIR:PATH=${PREFIX}/etc \
  10.         -DSHARE_INSTALL_PREFIX:PATH=${PREFIX}/share \
  11.         -DLIB_SUFFIX=64 \
  12.         -DBUILD_SHARED_LIBS:BOOL=ON \
  13.         -DBUILD_SHARED_LIBS:BOOL=OFF \
  14.         -G Ninja \
  15.         -DCMAKE_C_COMPILER=gcc \
  16.         -DCMAKE_CXX_COMPILER=g++ \
  17.         -DCMAKE_BUILD_TYPE=RelWithDebInfo \
  18.         -DLLVM_TARGETS_TO_BUILD=X86 \
  19.         -DLLVM_ENABLE_DOXYGEN=0 \
  20.         -DLLVM_ENABLE_OCAMLDOC:BOOL=OFF \
  21.         -DLLVM_ENABLE_BINDINGS:BOOL=OFF \
  22.         -DLIBCXX_ENABLE_STATIC:BOOL=OFF \
  23.         -DLLVM_ENABLE_PEDANTIC:BOOL=ON \
  24.         -DLLVM_ENABLE_SPHINX=0 \
  25.         -DLLVM_BUILD_LLVM_DYLIB=1 \
  26.         -DLLVM_OPTIMIZED_TABLEGEN=1 \
  27.         -DLLVM_PARALLEL_COMPILE_JOBS=8 \
  28.         -DLLVM_PARALLEL_LINK_JOBS=8 \
  29.         -DPYTHON_EXECUTABLE=/usr/bin/python3 \
  30.         -DLLVM_ENABLE_CXX1Z:BOOL=ON \
  31.         -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;compiler-rt;debuginfo-tests;libcxx;libcxxabi;libunwind;lld;lldb" \
  32.         ../llvm-project/llvm
  33.  
  34. #   -DLLVM_ENABLE_LLD:BOOL=ON \
  35. #   -DLLVM_ENABLE_LIBCXX:BOOL=ON \
  36.  
  37. ln -s lib lib64
  38. ninja check-all
  39. ninja install
  40.  
  41. ==========
  42.  
  43. 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