diff options
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
| -rw-r--r-- | xmake/modules/core/tools/cl.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index 39d14e350..d02982d12 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -235,7 +235,7 @@ function nf_precompiled_header(self, headerfile, target) -- make flag local extension = path.extension(headerfile) - if extension == ".h" or extension == ".hpp" then + if (extension:startswith(".h") or extension == ".inl") then return "-Yu" .. headerfile .. " -Fp" .. target:pcheaderfile() end end @@ -306,7 +306,7 @@ function _compargv1(self, sourcefile, objectfile, flags) -- precompiled header? local extension = path.extension(sourcefile) - if extension == ".h" or extension == ".hpp" then + if (extension:startswith(".h") or extension == ".inl") then return _compargv1_pch(self, sourcefile, objectfile, flags) end |
