summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2020-12-23 00:32:13 +0800
committerruki <[email protected]>2020-12-23 00:32:13 +0800
commite7f4ab3c95a04731de70991b401d78555c9fb1de (patch)
tree3673675ec50768c3a79601f5ca0dc9b8161474d8 /xmake/modules
parent5eb09e88851744fb544c5b6ed5e20a448928daa0 (diff)
improve parse include
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/private/tools/cl/parse_include.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/private/tools/cl/parse_include.lua b/xmake/modules/private/tools/cl/parse_include.lua
index 4175e9019..afb43b056 100644
--- a/xmake/modules/private/tools/cl/parse_include.lua
+++ b/xmake/modules/private/tools/cl/parse_include.lua
@@ -28,8 +28,8 @@ import("private.tools.vstool")
-- probe include note prefix from cl
function _probe_include_note_from_cl()
- local key = "note_include"
- local note = detectcache:get2("cldeps.parse_include", key)
+ local key = "cldeps.parse_include.note"
+ local note = detectcache:get(key)
if not note then
local cl = find_tool("cl")
if cl then
@@ -59,7 +59,7 @@ function _probe_include_note_from_cl()
end
os.tryrm(projectdir)
end
- detectcache:set2("cldeps.parse_include", key, note)
+ detectcache:set(key, note)
detectcache:save()
end
return note