Fixed DXC recipe on Windows.
This commit is contained in:
parent
9e0c022226
commit
40d91b51aa
@ -8,7 +8,8 @@ def _git_cook(env: Environment, repo: dict) -> dict:
|
||||
checkout_root = repo['checkout_root']
|
||||
build_result = env.CMakeProject(checkout_root, generate_args = [
|
||||
f'-C{repo['checkout_root']}/cmake/caches/PredefinedParams.cmake',
|
||||
'-DLLVM_INSTALL_TOOLCHAIN_ONLY=ON'
|
||||
'-DLLVM_INSTALL_TOOLCHAIN_ONLY=ON', '-DHLSL_INCLUDE_TESTS=OFF', '-DLLVM_INCLUDE_TESTS=OFF',
|
||||
'-DSPIRV_BUILD_TESTS=OFF'
|
||||
])
|
||||
|
||||
link_flags = []
|
||||
@ -16,7 +17,7 @@ def _git_cook(env: Environment, repo: dict) -> dict:
|
||||
link_flags.append(f'-Wl,-rpath,{build_result["LIBPATH"][0]}')
|
||||
return {
|
||||
'CPPPATH': build_result['CPPPATH'],
|
||||
'LIBS': [env.FindLib('dxcompiler', type='shared', paths=build_result['LIBPATH'])],
|
||||
'LIBS': [env.FindLib('dxcompiler', type='shared', paths=build_result['LIBPATH'] + build_result['BINPATH'])],
|
||||
'LINKFLAGS': link_flags
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user