diff options
| author | ruki <[email protected]> | 2023-08-30 14:16:04 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-30 14:16:04 +0800 |
| commit | 8b50dc2bc7f209e0a04b6024a1ef84e2b7745c02 (patch) | |
| tree | 643f35a0bcd7e9f3d8ed9d50242104aed1c8388c | |
| parent | db699f189067513da3b591e9d9a1edeb59ade8b4 (diff) | |
Update find_dxc.lua
| -rw-r--r-- | xmake/modules/detect/tools/find_dxc.lua | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/xmake/modules/detect/tools/find_dxc.lua b/xmake/modules/detect/tools/find_dxc.lua index 075bbb6c3..3bded84c3 100644 --- a/xmake/modules/detect/tools/find_dxc.lua +++ b/xmake/modules/detect/tools/find_dxc.lua @@ -37,20 +37,13 @@ import("lib.detect.find_programver") -- @endcode -- function main(opt) - - -- init options opt = opt or {} - - -- find program - opt.paths = opt.paths or - { + opt.paths = opt.paths or { "$(env VULKAN_SDK)/Bin", "$(env VK_SDK_PATH)/Bin", "$(env PATH)" } local program = find_program(opt.program or "dxc.exe", opt) - - -- find program version local version = nil if program and opt and opt.version then version = find_programver(program, opt) |
