From e7f4ab3c95a04731de70991b401d78555c9fb1de Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 23 Dec 2020 00:32:13 +0800 Subject: improve parse include --- xmake/modules/private/tools/cl/parse_include.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xmake/modules/private/tools/cl/parse_include.lua') 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 -- cgit v1.3.1