mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-08 05:27:14 +09:00
CMake: Use static libraries for try_compile() in libfuzzer builds
This commit is contained in:
parent
645eac1734
commit
8f0dad0898
Notes:
github-actions[bot]
2025-05-30 21:22:25 +00:00
Author: https://github.com/ADKaster
Commit: 8f0dad0898
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4924
1 changed files with 5 additions and 0 deletions
|
@ -41,6 +41,11 @@ serenity_option(ENABLE_SWIFT OFF CACHE BOOL "Enable building Swift files")
|
|||
serenity_option(ENABLE_STD_STACKTRACE OFF CACHE BOOL "Force use of std::stacktrace instead of libbacktrace. If it is not supported the build will fail")
|
||||
serenity_option(ENABLE_WINDOWS_CI OFF CACHE BOOL "Enable building targets supported on Windows for CI")
|
||||
|
||||
if (ENABLE_FUZZERS_LIBFUZZER)
|
||||
# With libfuzzer, we need to avoid a duplicate main() linker error giving false negatives
|
||||
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY CACHE STRING "Type of target to use for try_compile()" FORCE)
|
||||
endif()
|
||||
|
||||
if (ENABLE_SWIFT)
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/Swift/swift-settings.cmake)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue