You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2023/05/10 22:55:04 UTC
[doris] branch master updated: set ccache configs in env.h (#19502)
This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 22f95fca97 set ccache configs in env.h (#19502)
22f95fca97 is described below
commit 22f95fca971be93a564c39909ed331f1fbf53a39
Author: DeadlineFen <11...@users.noreply.github.com>
AuthorDate: Thu May 11 06:54:54 2023 +0800
set ccache configs in env.h (#19502)
---
be/CMakeLists.txt | 6 ++----
env.sh | 1 +
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/be/CMakeLists.txt b/be/CMakeLists.txt
index b043e25448..46b2af5f3a 100644
--- a/be/CMakeLists.txt
+++ b/be/CMakeLists.txt
@@ -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()
diff --git a/env.sh b/env.sh
index bb39f47114..52a63588ef 100755
--- a/env.sh
+++ b/env.sh
@@ -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"
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org