Skip to content

Commit

Permalink
Install libc++ modules std and std.compat (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
poyaoc97 authored Feb 16, 2024
1 parent ce29f18 commit 2a8f85e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,13 @@ mlir-*)
VERSION=trunk-$(date +%Y%m%d)
PATCHES_TO_APPLY+=("${ROOT}/patches/ce-debug-clang-trunk.patch")
LLVM_EXPERIMENTAL_TARGETS_TO_BUILD="DirectX;SPIRV;M68k"
CMAKE_EXTRA_ARGS+=("-DCLANG_ENABLE_HLSL=On")
CMAKE_EXTRA_ARGS+=("-DCLANG_ENABLE_HLSL=On" "-DLIBCXX_INSTALL_MODULES=ON")
LLVM_ENABLE_RUNTIMES+=";libunwind"
;;
assertions-trunk)
BRANCH=main
VERSION=assertions-trunk-$(date +%Y%m%d)
CMAKE_EXTRA_ARGS+=("-DLLVM_ENABLE_ASSERTIONS=ON")
CMAKE_EXTRA_ARGS+=("-DLLVM_ENABLE_ASSERTIONS=ON" "-DLIBCXX_INSTALL_MODULES=ON")
LLVM_ENABLE_RUNTIMES+=";libunwind"
PATCHES_TO_APPLY+=("${ROOT}/patches/ce-debug-clang-trunk.patch")
;;
Expand Down Expand Up @@ -238,6 +238,10 @@ mlir-*)
PATCHES_TO_APPLY+=("${ROOT}/patches/ce-debug-clang-trunk.patch")
LLVM_EXPERIMENTAL_TARGETS_TO_BUILD="M68k;WebAssembly"
fi

if [[ $MAJOR -ge 18 ]]; then
CMAKE_EXTRA_ARGS+=("-DLIBCXX_INSTALL_MODULES=ON")
fi
;;
esac
;;
Expand Down

0 comments on commit 2a8f85e

Please sign in to comment.