summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-06-15 00:14:09 +0800
committerruki <[email protected]>2022-06-15 00:14:09 +0800
commit4c53072dbd29618e52b58c8aaf16543b57b4d8cf (patch)
tree6b99c9fc427d59efd6ca5c6ccefe1187cbee7e96
parent961638dc34975f7d3b151894998896fe68df18ad (diff)
update changelog
-rw-r--r--xmake/modules/core/tools/gcc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index a22e2c357..dbb8dbd75 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -404,7 +404,7 @@ function _preprocess(program, argv, opt)
-- enable "-fdirectives-only"?
local directives_only
if is_gcc then
- local cachekey = "core.tool." .. tool:name()
+ local cachekey = "core.tools." .. tool:name()
directives_only = memcache.get(cachekey, "directives_only")
if directives_only == nil then
if os.isfile(os.projectfile()) and project.policy("preprocessor.gcc.directives_only") == false then
@@ -511,7 +511,7 @@ function _preprocess(program, argv, opt)
end}
if not cppinfo then
if is_gcc then
- local cachekey = "core.tool." .. tool:name()
+ local cachekey = "core.tools." .. tool:name()
memcache.set(cachekey, "directives_only", false)
end
end