mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 00:17:03 +00:00
CMake: Fix sanitizer builds
The sanitizer flags need to be applied to all compilation units, and to all final link stages. As this is whole-project (dawn + tint), these options have been promoted to DAWN_ options. Bug: dawn:1339 Change-Id: I17beb5bd2a8f15de9d8f13d132356b5c663d71bf Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/86143 Kokoro-Run: Ben Clayton <bclayton@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
d820f48f35
commit
96e245e576
@@ -13,6 +13,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
add_library(dawn_sample_utils STATIC ${DAWN_DUMMY_FILE})
|
||||
common_compile_options(dawn_sample_utils)
|
||||
target_sources(dawn_sample_utils PRIVATE
|
||||
"SampleUtils.cpp"
|
||||
"SampleUtils.h"
|
||||
@@ -29,13 +30,17 @@ target_link_libraries(dawn_sample_utils PUBLIC
|
||||
)
|
||||
|
||||
add_executable(CppHelloTriangle "CppHelloTriangle.cpp")
|
||||
common_compile_options(CppHelloTriangle)
|
||||
target_link_libraries(CppHelloTriangle dawn_sample_utils)
|
||||
|
||||
add_executable(CHelloTriangle "CHelloTriangle.cpp")
|
||||
common_compile_options(CHelloTriangle)
|
||||
target_link_libraries(CHelloTriangle dawn_sample_utils)
|
||||
|
||||
add_executable(ComputeBoids "ComputeBoids.cpp")
|
||||
common_compile_options(ComputeBoids)
|
||||
target_link_libraries(ComputeBoids dawn_sample_utils)
|
||||
|
||||
add_executable(Animometer "Animometer.cpp")
|
||||
common_compile_options(Animometer)
|
||||
target_link_libraries(Animometer dawn_sample_utils)
|
||||
|
||||
Reference in New Issue
Block a user