diff options
| author | ruki <[email protected]> | 2024-11-28 23:36:07 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-11-28 23:36:07 +0800 |
| commit | f85b045eb366fce9c87522c84a29dbf6b905c1fe (patch) | |
| tree | 59891a4e365bff4a22487ba2c8b3596fb9e38b7d /xmake/modules/core/tools/gcc.lua | |
| parent | 2c973f5431c7fc907ed52a01698f1dd51804507d (diff) | |
fix gcc pcheaders #5858
Diffstat (limited to 'xmake/modules/core/tools/gcc.lua')
| -rw-r--r-- | xmake/modules/core/tools/gcc.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index 2ff5be449..821bd9910 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -497,7 +497,7 @@ function nf_pcheader(self, pcheaderfile, opt) if self:name() == "clang" then return {"-include", pcheaderfile, "-include-pch", pcoutputfile} else - return {"-include", path.filename(pcheaderfile), "-I", path.directory(pcoutputfile)} + return {"-I", path.directory(pcoutputfile), "-include", path.filename(pcheaderfile)} end end end @@ -510,7 +510,7 @@ function nf_pcxxheader(self, pcheaderfile, opt) if self:name() == "clang" then return {"-include", pcheaderfile, "-include-pch", pcoutputfile} else - return {"-include", path.filename(pcheaderfile), "-I", path.directory(pcoutputfile)} + return {"-I", path.directory(pcoutputfile), "-include", path.filename(pcheaderfile)} end end end @@ -523,7 +523,7 @@ function nf_pmheader(self, pcheaderfile, opt) if self:name() == "clang" then return {"-include", pcheaderfile, "-include-pch", pcoutputfile} else - return {"-include", path.filename(pcheaderfile), "-I", path.directory(pcoutputfile)} + return {"-I", path.directory(pcoutputfile), "-include", path.filename(pcheaderfile)} end end end @@ -536,7 +536,7 @@ function nf_pmxxheader(self, pcheaderfile, opt) if self:name() == "clang" then return {"-include", pcheaderfile, "-include-pch", pcoutputfile} else - return {"-include", path.filename(pcheaderfile), "-I", path.directory(pcoutputfile)} + return {"-I", path.directory(pcoutputfile), "-include", path.filename(pcheaderfile)} end end end |
