diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-06-15 13:46:59 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-06-18 00:59:32 +0000 |
commit | df15a2fafc114787ded709e025a187b317eee200 (patch) | |
tree | cde518a2117ea85c29d1df6f5c9a1aa75a2dd1e4 /src | |
parent | 75522d57a8a8d4d038dc5c0954ce823f290ca7e7 (diff) |
Fix clang-cl builds
Change-Id: I57d3c057e076445f902da509655728cb20a4a18b
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
(cherry picked from commit c8643e47b0ba8dc0f345c2feaabfa60e54f809c3)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/core/CMakeLists.txt | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index b5c30d3b9..b881a316e 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -268,7 +268,7 @@ foreach(config ${configs}) if(${config} STREQUAL "Debug") list(APPEND gnArgArg is_debug=true symbol_level=2) - if(WIN32 AND NOT CLANG) + if(WIN32) list(APPEND gnArgArg enable_iterator_debugging=true v8_optimized_debug=false) endif() elseif(${config} STREQUAL "Release") @@ -336,9 +336,16 @@ foreach(config ${configs}) ARGS is_clang CONDITION CLANG ) - if(CLANG) - list(APPEND gnArgArg clang_use_chrome_plugins=false) + if(CLANG AND NOT MACOS) + # For some reason this doesn't work for our macOS CIs + get_filename_component(clangBasePath ${CMAKE_CXX_COMPILER} DIRECTORY) + get_filename_component(clangBasePath ${clangBasePath} DIRECTORY) + list(APPEND gnArgArg + clang_base_path="${clangBasePath}" + clang_use_chrome_plugins=false + ) endif() + extend_gn_list(gnArgArg ARGS use_gold CONDITION QT_FEATURE_use_gold_linker |