mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +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: https://github.com/LadybirdBrowser/ladybird/commit/24ff698914b 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_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})
|
||||
|
||||
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
Reference in a new issue