diff options
| -rw-r--r-- | xmake/modules/detect/sdks/find_c51.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/modules/detect/sdks/find_c51.lua b/xmake/modules/detect/sdks/find_c51.lua index 53354e2bf..ad761c0bb 100644 --- a/xmake/modules/detect/sdks/find_c51.lua +++ b/xmake/modules/detect/sdks/find_c51.lua @@ -17,7 +17,7 @@ -- -- @author DawnMagnet -- @file find_c51.lua --- +-- -- imports import("lib.detect.find_path") @@ -96,12 +96,12 @@ function main(sdkdir, opt) -- attempt to load cache first local key = "detect.sdks.find_c51" - + local cacheinfo = detectcache:get(key) or {} if not opt.force and cacheinfo.c51 and cacheinfo.c51.sdkdir and os.isdir(cacheinfo.c51.sdkdir) then return cacheinfo.c51 end - + -- find c51 local c51 = _find_c51(sdkdir or config.get("sdk")) if c51 then @@ -119,4 +119,4 @@ function main(sdkdir, opt) detectcache:set(key, cacheinfo) detectcache:save() return c51 -end
\ No newline at end of file +end |
