Skip to content

Commit

Permalink
[Tool] Restore compile flags after building llvm
Browse files Browse the repository at this point in the history
Signed-off-by: Moonm3n <[email protected]>
  • Loading branch information
Moonm3n committed Aug 25, 2023
1 parent 0da2c5d commit 2f8535e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion thirdparty/build-thirdparty.sh
Original file line number Diff line number Diff line change
Expand Up @@ -300,14 +300,16 @@ build_llvm() {
-DLLVM_INCLUDE_TESTS:BOOL=False \
-DLLVM_INCLUDE_BENCHMARKS:BOOL=False \
-DBUILD_SHARED_LIBS:BOOL=False \
-DCMAKE_BUILD_TYPE="RELEASE" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=${TP_INSTALL_DIR}/llvm ../${LLVM_SOURCE}

# TODO(yueyang): Add more targets.
# This is a little bit hack, we need to minimize the build time and binary size.
${BUILD_SYSTEM} -j$PARALLEL REQUIRES_RTTI=1 ${LLVM_TARGETS_TO_BUILD[@]}
${BUILD_SYSTEM} install-llvm-headers
${BUILD_SYSTEM} ${LLVM_TARGETS_TO_INSTALL[@]}

restore_compile_flags
}

# protobuf
Expand Down

0 comments on commit 2f8535e

Please sign in to comment.