mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 03:59:19 +02:00
spell the delay-load flag for the driver in use
clang's GNU driver read /DELAYLOAD:dxcompiler.dll as a file name. CMake's LINKER: prefix emits -Xlinker for it and passes it bare under MSVC. The other raw linker flags in the tree sit inside if(MSVC), which is false for this driver, so they never reach the command line.
This commit is contained in:
@@ -16,7 +16,9 @@ target_link_libraries(MaSzynaShaderCompiler nvrhi yaml-cpp Microsoft::DirectXSha
|
||||
|
||||
if (WIN32)
|
||||
target_link_libraries(MaSzynaShaderCompiler delayimp)
|
||||
target_link_options(MaSzynaShaderCompiler PRIVATE "/DELAYLOAD:dxcompiler.dll")
|
||||
# LINKER: lets CMake spell this for whichever driver is in use - passed
|
||||
# straight through, clang's GNU driver reads /DELAYLOAD as a file name.
|
||||
target_link_options(MaSzynaShaderCompiler PRIVATE "LINKER:/DELAYLOAD:dxcompiler.dll")
|
||||
endif ()
|
||||
|
||||
# We later pass the DXIL.dll parent directory as first argument to MaSzynaShaderCompiler so that it can sign DX12 shaders
|
||||
|
||||
Reference in New Issue
Block a user