CMakeLists: do not use Linux linker flag on macOS

This commit is contained in:
Sergey Fedorov 2024-03-10 01:17:32 +07:00
parent 4f5e530b02
commit da4ba02ea7
No known key found for this signature in database
GPG key ID: 3397EF66A7275D91

View file

@ -27,7 +27,7 @@ if(FAST_DOUBLE_PARSER_SANITIZE)
target_compile_options(unit PUBLIC -fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=all)
target_link_options(unit PUBLIC -fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=all)
# Ubuntu bug for GCC 5.0+ (safe for all versions)
if (CMAKE_COMPILER_IS_GNUCC)
if (CMAKE_COMPILER_IS_GNUCC AND NOT APPLE)
target_link_libraries(unit PUBLIC -fuse-ld=gold)
endif()
endif()