diff --git a/Meta/CMake/lagom_compile_options.cmake b/Meta/CMake/lagom_compile_options.cmake index ad76966f75e..7fec47ac843 100644 --- a/Meta/CMake/lagom_compile_options.cmake +++ b/Meta/CMake/lagom_compile_options.cmake @@ -46,10 +46,12 @@ function(add_cxx_linker_flag_if_supported flag) endif() endfunction() -add_cxx_linker_flag_if_supported(LINKER:--gdb-index) +if (NOT WIN32) + add_cxx_linker_flag_if_supported(LINKER:--gdb-index) -if (NOT ENABLE_FUZZERS) - add_cxx_linker_flag_if_supported(LINKER:-Bsymbolic-non-weak-functions) + if (NOT ENABLE_FUZZERS) + add_cxx_linker_flag_if_supported(LINKER:-Bsymbolic-non-weak-functions) + endif() endif() if (ENABLE_LAGOM_COVERAGE_COLLECTION) diff --git a/Meta/CMake/use_linker.cmake b/Meta/CMake/use_linker.cmake index ddb11937e13..8909c57c6a3 100644 --- a/Meta/CMake/use_linker.cmake +++ b/Meta/CMake/use_linker.cmake @@ -4,7 +4,7 @@ # SPDX-License-Identifier: BSD-2-Clause # -if (NOT APPLE AND NOT ANDROID AND NOT LAGOM_USE_LINKER) +if (NOT APPLE AND NOT ANDROID AND NOT WIN32 AND NOT LAGOM_USE_LINKER) find_program(LLD_LINKER NAMES "ld.lld") if (LLD_LINKER) message(STATUS "Using LLD to link Lagom.") diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt index 8019322d7e5..94613ec41b6 100644 --- a/Meta/Lagom/CMakeLists.txt +++ b/Meta/Lagom/CMakeLists.txt @@ -324,7 +324,7 @@ add_lagom_library_install_rules(JSClangPlugin) # Create mostly empty targets for system libraries we don't need to build for Lagom add_library(LibC INTERFACE) add_library(LibCrypt INTERFACE) -if (NOT APPLE AND NOT ANDROID AND NOT EMSCRIPTEN AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" AND NOT HAIKU) +if (NOT APPLE AND NOT ANDROID AND NOT EMSCRIPTEN AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" AND NOT HAIKU AND NOT WIN32) target_link_libraries(LibCrypt INTERFACE crypt) # LibCore::Account uses crypt() but it's not in libcrypt on macOS endif() add_library(NoCoverage INTERFACE)