diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-06-23 11:30:14 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-06-30 12:08:28 +0000 |
commit | db6690e9e6fb823925e68df9b4bf6bdc785f1b04 (patch) | |
tree | b4b4b9ca56c80204d5a2c32f9e04ffddaed60282 /CMakeLists.txt | |
parent | 94a1058bdb29f6ff911820563565193ea263929d (diff) |
Pass compiler wrapper to GN
Change-Id: I1ce6e9d0e03bb780f85636865e15552ac28876fa
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
(cherry picked from commit 1efcf20bcc1d41edb56d4ef491dc9c26b7a98f15)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index dbd925dc0..ff98c705a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -126,6 +126,12 @@ list(APPEND libsCmakeArgs "-DWEBENGINE_REPO_BUILD=TRUE" "${featureList}" ) +if (CMAKE_C_COMPILER_LAUNCHER) + list(APPEND libsCmakeArgs "-DCMAKE_C_COMPILER_LAUNCHER=${CMAKE_C_COMPILER_LAUNCHER}") +endif() +if (CMAKE_CXX_COMPILER_LAUNCHER) + list(APPEND libsCmakeArgs "-DCMAKE_CXX_COMPILER_LAUNCHER=${CMAKE_CXX_COMPILER_LAUNCHER}") +endif() if(LINUX) set(cmd "${CMAKE_COMMAND} --build ${CMAKE_CURRENT_BINARY_DIR}/src") |