summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2024-07-01 15:01:08 +0800
committerGitHub <[email protected]>2024-07-01 15:01:08 +0800
commitca9a814e98f3272abed5ec0da1be25e171261e28 (patch)
treebd51453801af5b6cb239bcc436b97bd514763aee /xmake/modules
parent9d34f4062150698f4beadd556da358ff795dc5c9 (diff)
parentb7d5f7ff07be36ab24e1c431ce20d2965095c1df (diff)
Merge pull request #5284 from xmake-io/pch
fix pch for gcc/clang #5270
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/core/tools/gcc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index 960bf1acf..e33c40c41 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -802,7 +802,7 @@ function _compargv_pch(self, pcheaderfile, pcoutputfile, flags, opt)
local pchflags = {}
local include = false
for _, flag in ipairs(flags) do
- if not flag:find("-include", 1, true) then
+ if not flag:startswith("-include") then
if not include then
table.insert(pchflags, flag)
end