mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 07:09:47 +00:00
ClangPlugins: Don't build plugins with sanitizers
This commit is contained in:
parent
cdffc4238a
commit
24ff698914
Notes:
github-actions[bot]
2024-07-26 00:36:58 +00:00
Author: https://github.com/ADKaster
Commit: 24ff698914
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/837
1 changed files with 4 additions and 0 deletions
|
@ -7,6 +7,10 @@ function(clang_plugin target_name)
|
||||||
target_compile_features(${target_name} PRIVATE cxx_std_20)
|
target_compile_features(${target_name} PRIVATE cxx_std_20)
|
||||||
target_compile_options(${target_name} PRIVATE -Wall -Wextra -Werror -Wno-unused -fno-rtti)
|
target_compile_options(${target_name} PRIVATE -Wall -Wextra -Werror -Wno-unused -fno-rtti)
|
||||||
|
|
||||||
|
# Building these with fuzzers would require building the compiler with fuzzers, which feels out of scope
|
||||||
|
target_compile_options(${target_name} PRIVATE -fno-sanitize=all)
|
||||||
|
target_link_options(${target_name} PRIVATE -fno-sanitize=all)
|
||||||
|
|
||||||
add_custom_target(${target_name}Target DEPENDS ${target_name})
|
add_custom_target(${target_name}Target DEPENDS ${target_name})
|
||||||
|
|
||||||
set_property(GLOBAL APPEND PROPERTY CLANG_PLUGINS_COMPILE_OPTIONS_FOR_TESTS -fplugin=${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/lib${target_name}.so)
|
set_property(GLOBAL APPEND PROPERTY CLANG_PLUGINS_COMPILE_OPTIONS_FOR_TESTS -fplugin=${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/lib${target_name}.so)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue