summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-05-26 17:10:40 +0800
committerGitHub <[email protected]>2025-05-26 17:10:40 +0800
commit9ea8487862ef561c118411045ded493d658f1cf8 (patch)
tree2873c45ae6b54060197d57d48bace1ce9693e4d2
parente4d52557f6e5c244ace04a8b2c04549d67b22bf5 (diff)
Update find_dia_sdk.lua
-rw-r--r--xmake/modules/detect/sdks/find_dia_sdk.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/xmake/modules/detect/sdks/find_dia_sdk.lua b/xmake/modules/detect/sdks/find_dia_sdk.lua
index e4796dda6..3e4097410 100644
--- a/xmake/modules/detect/sdks/find_dia_sdk.lua
+++ b/xmake/modules/detect/sdks/find_dia_sdk.lua
@@ -110,7 +110,6 @@ end
-- @endcode
--
function main(sdkdir, opt)
- -- init options
opt = opt or {}
-- attempt to load cache first
@@ -132,7 +131,7 @@ function main(sdkdir, opt)
if VSInstallDir then
dia_sdk = _find_dia_sdk(VSInstallDir, opt)
if dia_sdk then
- goto find
+ goto found
end
end
end
@@ -141,7 +140,7 @@ function main(sdkdir, opt)
end
end
-::find::
+::found::
if dia_sdk then
if opt.verbose or option.get("verbose") then
@@ -158,4 +157,4 @@ function main(sdkdir, opt)
detectcache:set(key, cacheinfo)
detectcache:save()
return dia_sdk
-end \ No newline at end of file
+end