From 8b50dc2bc7f209e0a04b6024a1ef84e2b7745c02 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 30 Aug 2023 14:16:04 +0800 Subject: Update find_dxc.lua --- xmake/modules/detect/tools/find_dxc.lua | 9 +-------- 1 file changed, 1 insertion(+), 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) -- cgit v1.3.1