summaryrefslogtreecommitdiffstats
path: root/cmake/Functions.cmake
diff options
context:
space:
mode:
authorMichael BrĂ¼ning <michael.bruning@qt.io>2023-11-09 16:45:47 +0100
committerMichael BrĂ¼ning <michael.bruning@qt.io>2023-11-15 13:36:41 +0000
commit9ea0c1e94f072794c568f4f82ed03a3997c8a2ff (patch)
tree284ebbdda7386f02d039d4f2c877c6a0bd2f0ac3 /cmake/Functions.cmake
parent01b5b56b8f4e5547131cabab1974d5d06cb1336d (diff)
Pass clang_version on macOS sanitizer builds
Chromium uses different clang_version numbers, which causes sanitizer builds to look for dependencies in the wrong place. Pick-to: 6.6 6.5 Task-number: QTBUG-114865 Change-Id: I8f6028c550336a9eea3c598d00e7e53e74bbff3a Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'cmake/Functions.cmake')
-rw-r--r--cmake/Functions.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/Functions.cmake b/cmake/Functions.cmake
index 039b4daf7..6cba4d24c 100644
--- a/cmake/Functions.cmake
+++ b/cmake/Functions.cmake
@@ -1057,6 +1057,11 @@ macro(append_sanitizer_setup)
ARGS is_ubsan is_ubsan_vptr
CONDITION undefined IN_LIST ECM_ENABLE_SANITIZERS
)
+ if(APPLE)
+ list(APPEND gnArgArg
+ clang_version=\"${QT_COMPILER_VERSION_MAJOR}.${QT_COMPILER_VERSION_MINOR}.${QT_COMPILER_VERSION_PATCH}\"
+ )
+ endif()
endif()
endmacro()