summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.lua
diff options
context:
space:
mode:
authorRimuruChan <[email protected]>2024-01-05 19:52:03 +0800
committerGitHub <[email protected]>2024-01-05 19:52:03 +0800
commit663b433c81423b438ed17bf682f0432eb690ffb9 (patch)
treea9fc1164b2610de7e29776a046aec9f272faa2a8 /xmake/modules/core/tools/cl.lua
parentf5a802f8d035c19068e4f52eecea638f10a06a4a (diff)
fix: fix #4555
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
-rw-r--r--xmake/modules/core/tools/cl.lua4
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