From b0c6c6c058dfe7fe21f42da4da8c8f03fbdb8951 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 28 Sep 2017 23:44:36 +0800 Subject: fix compile error with space path --- xmake/modules/core/tools/cl.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xmake/modules/core/tools/cl.lua') diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index 81da0f528..23fcd9086 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -220,7 +220,7 @@ end -- make the includedir flag function nf_includedir(self, dir) - return "-I" .. dir + return "-I" .. os.args(dir) end -- make the c precompiled header flag @@ -236,7 +236,7 @@ function nf_pcheader(self, pcheaderfile, target) end -- make flag - return "-Yu" .. path.filename(pcheaderfile) .. " -FI" .. path.filename(pcheaderfile) .. " -Fp" .. target:pcoutputfile("c") + return "-Yu" .. path.filename(pcheaderfile) .. " -FI" .. path.filename(pcheaderfile) .. " -Fp" .. os.args(target:pcoutputfile("c")) end end @@ -253,7 +253,7 @@ function nf_pcxxheader(self, pcheaderfile, target) end -- make flag - return "-Yu" .. path.filename(pcheaderfile) .. " -FI" .. path.filename(pcheaderfile) .. " -Fp" .. target:pcoutputfile("cxx") + return "-Yu" .. path.filename(pcheaderfile) .. " -FI" .. path.filename(pcheaderfile) .. " -Fp" .. os.args(target:pcoutputfile("cxx")) end end -- cgit v1.3.1