set ccache configs in env.h (#19502)
This commit is contained in:
@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user