diff options
| author | ruki <[email protected]> | 2024-07-01 23:17:26 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-07-01 23:17:26 +0800 |
| commit | b7d5f7ff07be36ab24e1c431ce20d2965095c1df (patch) | |
| tree | b0aa6157032325d19997805d7965309c463d683e | |
| parent | 6bed5edd427bf382cf966f8cbff780f7fdfdad2d (diff) | |
fix pch for gcc/clang #5270
| -rw-r--r-- | xmake/modules/core/tools/gcc.lua | 2 |
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 |
