summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/gcc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-17 00:59:13 +0800
committerruki <[email protected]>2022-05-17 00:59:13 +0800
commitb4159ba0031f6203838396fcb964e77e3c7f402d (patch)
tree1531c37ecc359adcbe2e5ce16d8d6f070f0e729f /xmake/modules/core/tools/gcc.lua
parent0894984d573ee66e8b8f860464f2fc0c6a8208c8 (diff)
improve gcc pch
Diffstat (limited to 'xmake/modules/core/tools/gcc.lua')
-rw-r--r--xmake/modules/core/tools/gcc.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index 14c1a4b2b..291e2b47e 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -407,7 +407,9 @@ function _preprocess(program, argv, opt)
-- get compiler flags
if flag == "-MMD" or flag:startswith("-I") or flag:startswith("--sysroot=") then
skipped = 1
- elseif flag == "-MF" or flag == "-I" or flag == "-isystem" or flag == "-isysroot" or flag == "-gcc-toolchain" then
+ elseif flag == "-MF" or
+ flag == "-I" or flag == "-isystem" or flag == "-include" or flag == "-include-pch" or
+ flag == "-isysroot" or flag == "-gcc-toolchain" then
skipped = 2
elseif flag:endswith("xcrun") then
skipped = 4