Skip to content

Commit 26ce804

Browse files
committed
Set DEPENDENTLOADFLAG also for Clang/SYCL
1 parent 276840c commit 26ce804

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Version History
77
- Fix enum size on Windows with older MSVC
88
- Fix benchmark compilation with MSVC
99
- Ship all release packages with OpenVDB
10+
- Set DEPENDENTLOADFLAG also on the Windows binaries built with Clang/SYCL
1011
- Update to latest versions of dependencies
1112

1213
### Open VKL 2.0.2

‎cmake/openvkl_macros.cmake‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ macro(openvkl_configure_global_build_flags)
8383
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "IntelLLVM")
8484
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /Qoption,link,/DEPENDENTLOADFLAG:0x2000")
8585
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /Qoption,link,/DEPENDENTLOADFLAG:0x2000")
86+
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang") # also clang-cl
87+
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Xlinker /DEPENDENTLOADFLAG:0x2000")
88+
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Xlinker /DEPENDENTLOADFLAG:0x2000")
8689
else()
8790
message(WARNING "Unrecognized compiler, DEPENDENTLOADFLAG can't be set")
8891
endif()

0 commit comments

Comments
 (0)