You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
954 B

1 month ago
  1. #!/usr/bin/env bash
  2. # Checkout LLVM sources
  3. #git clone --depth=1 https://github.com/llvm/llvm-project.git llvm-project
  4. #
  5. ## Setup libc++ options
  6. #if [ -z "$BUILD_32_BITS" ]; then
  7. # export BUILD_32_BITS=OFF && echo disabling 32 bit build
  8. #fi
  9. #
  10. ## Build and install libc++ (Use unstable ABI for better sanitizer coverage)
  11. #cd ./llvm-project
  12. #cmake -DCMAKE_C_COMPILER=${CC} \
  13. # -DCMAKE_CXX_COMPILER=${CXX} \
  14. # -DCMAKE_BUILD_TYPE=RelWithDebInfo \
  15. # -DCMAKE_INSTALL_PREFIX=/usr \
  16. # -DLIBCXX_ABI_UNSTABLE=OFF \
  17. # -DLLVM_USE_SANITIZER=${LIBCXX_SANITIZER} \
  18. # -DLLVM_BUILD_32_BITS=${BUILD_32_BITS} \
  19. # -DLLVM_ENABLE_RUNTIMES='libcxx;libcxxabi' \
  20. # -S llvm -B llvm-build -G "Unix Makefiles"
  21. #make -C llvm-build -j3 cxx cxxabi
  22. #sudo make -C llvm-build install-cxx install-cxxabi
  23. #cd ..
  24. sudo apt update
  25. sudo apt -y install libc++-dev libc++abi-dev