Skip to content

Commit

Permalink
Merge pull request #772 from Maetveis/fix_unwrapped_icx_linker_flags
Browse files Browse the repository at this point in the history
Wrap linker flags on Windows for IntelLLVM
  • Loading branch information
lukaszstolarczuk authored Oct 7, 2024
2 parents ade200a + 7ac8cfb commit e6ff45e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmake/helpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -295,17 +295,17 @@ function(add_umf_target_link_options name)
target_link_options(
${name}
PRIVATE
/DYNAMICBASE
/HIGHENTROPYVA
LINKER:/DYNAMICBASE
LINKER:/HIGHENTROPYVA
$<$<C_COMPILER_ID:MSVC>:/DEPENDENTLOADFLAG:0x2000>
$<$<CXX_COMPILER_ID:MSVC>:/DEPENDENTLOADFLAG:0x2000>
/NXCOMPAT)
LINKER:/NXCOMPAT)
endif()
endfunction()

function(add_umf_target_exec_options name)
if(MSVC)
target_link_options(${name} PRIVATE /ALLOWISOLATION)
target_link_options(${name} PRIVATE LINKER:/ALLOWISOLATION)
endif()
endfunction()

Expand Down Expand Up @@ -362,7 +362,7 @@ function(add_umf_library)

if(WINDOWS)
target_link_options(${ARG_NAME} PRIVATE
/DEF:${ARG_WINDOWS_DEF_FILE})
LINKER:/DEF:${ARG_WINDOWS_DEF_FILE})
elseif(LINUX)
target_link_options(${ARG_NAME} PRIVATE
"-Wl,--version-script=${ARG_LINUX_MAP_FILE}")
Expand Down

0 comments on commit e6ff45e

Please sign in to comment.