File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 1- # Copyright (c) 2020-2022 Intel Corporation
1+ # Copyright (c) 2020-2025 Intel Corporation
2+ # Copyright (c) 2025 UXL Foundation Contributors
23#
34# Licensed under the Apache License, Version 2.0 (the "License");
45# you may not use this file except in compliance with the License.
1415
1516set (TBB_SANITIZE ${TBB_SANITIZE} CACHE STRING "Sanitizer parameter passed to compiler/linker" FORCE)
1617# Possible values of sanitizer parameter for cmake-gui for convenience, user still can use any other value.
17- set_property (CACHE TBB_SANITIZE PROPERTY STRINGS "thread" "memory" "leak" "address -fno-omit-frame-pointer " )
18+ set_property (CACHE TBB_SANITIZE PROPERTY STRINGS "thread" "memory" "leak" "address" )
1819
1920if (NOT TBB_SANITIZE)
2021 return ()
2122endif ()
2223
2324set (TBB_SANITIZE_OPTION -fsanitize=${TBB_SANITIZE} )
2425
26+ if (TBB_SANITIZE MATCHES "thread" )
27+ set (TBB_SANITIZE_OPTION "${TBB_SANITIZE_OPTION} -Wno-tsan" )
28+ endif ()
29+
30+ if (TBB_SANITIZE MATCHES "address" )
31+ set (TBB_SANITIZE_OPTION "${TBB_SANITIZE_OPTION} -fno-omit-frame-pointer" )
32+ endif ()
33+
2534# It is required to add sanitizer option to CMAKE_REQUIRED_LIBRARIES to make check_cxx_compiler_flag working properly:
2635# sanitizer option should be passed during the compilation phase as well as during the compilation.
2736set (CMAKE_REQUIRED_LIBRARIES "${TBB_SANITIZE_OPTION} ${CMAKE_REQUIRED_LIBRARIES} " )
You can’t perform that action at this time.
0 commit comments