diff options
| author | c0nd3v <[email protected]> | 2022-12-28 12:28:26 -0500 |
|---|---|---|
| committer | c0nd3v <[email protected]> | 2022-12-28 12:28:26 -0500 |
| commit | 7b1013ec0f127ba0f7009f5fb925f6151ef35f28 (patch) | |
| tree | 42e2ee4526c9fec8bfe030d3566ba53ad4c6c774 | |
| parent | 462982dc86241441060a9e802806899f78fd3f74 (diff) | |
Fix precompiled headers in ObjC
| -rw-r--r-- | xmake/modules/core/tools/gcc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index 412a0cdbf..8d8c67835 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -316,7 +316,7 @@ end -- make the c precompiled header flag function nf_pcheader(self, pcheaderfile, target) - if self:kind() == "cc" then + if self:kind() == "cc" or self:kind() == "mm" then local pcoutputfile = target:pcoutputfile("c") if self:name() == "clang" then return {"-include", pcheaderfile, "-include-pch", pcoutputfile} @@ -328,7 +328,7 @@ end -- make the c++ precompiled header flag function nf_pcxxheader(self, pcheaderfile, target) - if self:kind() == "cxx" then + if self:kind() == "cxx" or self:kind() == "mxx" then local pcoutputfile = target:pcoutputfile("cxx") if self:name() == "clang" then return {"-include", pcheaderfile, "-include-pch", pcoutputfile} |
