diff options
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/core/tools/gcc.lua | 4 |
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 |
