diff options
| author | ruki <[email protected]> | 2024-01-05 22:18:46 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-05 22:18:46 +0800 |
| commit | ed7bd9321a7910bfa75848cfa5f7d140b3a68e46 (patch) | |
| tree | fe6195e2ead1ca04af2de2be563f94a3d73a1f9e | |
| parent | b8641e4ae603f0b28f82b460225bf3fb66a49583 (diff) | |
| parent | 663b433c81423b438ed17bf682f0432eb690ffb9 (diff) | |
Merge pull request #4572 from RimuruChan/patch-1
fix: fix #4555
| -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 5aad46d82..2d267f508 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -386,7 +386,7 @@ function nf_pcheader(self, pcheaderfile, opt) if objectfiles then table.insert(objectfiles, target:pcoutputfile("c") .. ".obj") end - return {"-Yu" .. path.filename(pcheaderfile), "-FI" .. path.filename(pcheaderfile), "-Fp" .. target:pcoutputfile("c")} + return {"-Yu" .. path.absolute(pcheaderfile), "-FI" .. path.absolute(pcheaderfile), "-Fp" .. target:pcoutputfile("c")} end end @@ -398,7 +398,7 @@ function nf_pcxxheader(self, pcheaderfile, opt) if objectfiles then table.insert(objectfiles, target:pcoutputfile("cxx") .. ".obj") end - return {"-Yu" .. path.filename(pcheaderfile), "-FI" .. path.filename(pcheaderfile), "-Fp" .. target:pcoutputfile("cxx")} + return {"-Yu" .. path.absolute(pcheaderfile), "-FI" .. path.absolute(pcheaderfile), "-Fp" .. target:pcoutputfile("cxx")} end end |
