summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/core/tools/gcc.lua1
-rw-r--r--xmake/modules/private/cache/build_cache.lua2
2 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index 9645dad79..67667149a 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -431,6 +431,7 @@ function _preprocess(program, argv, opt)
if not os.isdir(cppfiledir) then
os.mkdir(cppfiledir)
end
+ -- TODO try -fdirectives-only
table.insert(cppflags, "-E")
table.insert(cppflags, "-o")
table.insert(cppflags, cppfile)
diff --git a/xmake/modules/private/cache/build_cache.lua b/xmake/modules/private/cache/build_cache.lua
index 440dfb9a2..f31270ecf 100644
--- a/xmake/modules/private/cache/build_cache.lua
+++ b/xmake/modules/private/cache/build_cache.lua
@@ -49,7 +49,7 @@ function cachekey(program, cppfile, cppflags, envs)
table.insert(items, cppflag)
end
table.sort(items)
- table.insert(items, hash.sha1(cppfile))
+ table.insert(items, hash.sha1(cppfile)) -- TODO use blake3
if envs then
local basename = path.basename(program)
if basename == "cl" then