diff options
| author | ruki <[email protected]> | 2023-06-30 22:50:09 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-06-30 22:50:09 +0800 |
| commit | 83a29121653eba255657de9f9150ee062bcedf81 (patch) | |
| tree | e67ffcf39b82ef8ebe2a35cce7fa4130e36dbbea | |
| parent | c0054507841b34eddfe163fc4b64ff39bb3865a0 (diff) | |
fix typo error
| -rw-r--r-- | xmake/modules/core/tools/clang_cl.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/clang_cl.lua b/xmake/modules/core/tools/clang_cl.lua index dde36b31c..ee795e9d7 100644 --- a/xmake/modules/core/tools/clang_cl.lua +++ b/xmake/modules/core/tools/clang_cl.lua @@ -111,7 +111,10 @@ function nf_pcheader(self, pcheaderfile, target) if objectfiles then table.insert(objectfiles, target:pcoutputfile("c") .. ".obj") end - return {"-Yu" .. path.filename(pcheaderfile), "-FI" .. path.filename(pcheaderfile), "-I" .. path.directory(pcheaderfile), "-Fp" .. target:pcoutputfile("c")} + return {"-Yu" .. path.filename(pcheaderfile), + "-FI" .. path.filename(pcheaderfile), + "-I" .. path.directory(pcheaderfile), + "-Fp" .. target:pcoutputfile("c")} end end @@ -124,7 +127,10 @@ function nf_pcxxheader(self, pcheaderfile, target) end -- https://github.com/xmake-io/xmake/issues/3905 -- clang-cl need extra include search path - return {"-Yu" .. path.filename(pcheaderfile), "-FI" .. path.filename(pcheaderfile), "-I" .. path.directory(pcheaderfile), "-Fp" .. target:pcoutputfile("c")} + return {"-Yu" .. path.filename(pcheaderfile), + "-FI" .. path.filename(pcheaderfile), + "-I" .. path.directory(pcheaderfile), + "-Fp" .. target:pcoutputfile("cxx")} end end |
