set ccache configs in env.h (#19502)

This commit is contained in:
DeadlineFen
2023-05-11 06:54:54 +08:00
committed by GitHub
parent 41d4ed8367
commit 22f95fca97
2 changed files with 3 additions and 4 deletions

View File

@ -986,16 +986,14 @@ else()
endif()
if (ENABLE_PCH)
add_library(pch STATIC ${SRC_DIR}pch/pch.cc)
add_library(pch STATIC ${SRC_DIR}pch/pch.cc)
target_precompile_headers(
pch
PUBLIC
${SRC_DIR}pch/pch.h
)
if (COMPILER_CLANG)
add_compile_options(-Xclang -fno-pch-timestamp)
else()
add_compile_options(-fpch-preprocess)
target_compile_options(pch PRIVATE -Xclang -fno-pch-timestamp)
endif()
endif()

1
env.sh
View File

@ -263,3 +263,4 @@ export GENERATOR
export BUILD_SYSTEM
export PKG_CONFIG_PATH="${DORIS_HOME}/thirdparty/installed/lib64/pkgconfig:${PKG_CONFIG_PATH}"
export CCACHE_SLOPPINESS="time_macros pch_defines"