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/dmd.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xmake/modules/core/tools/dmd.lua') diff --git a/xmake/modules/core/tools/dmd.lua b/xmake/modules/core/tools/dmd.lua index f2a951925..0c6db3844 100644 --- a/xmake/modules/core/tools/dmd.lua +++ b/xmake/modules/core/tools/dmd.lua @@ -129,7 +129,7 @@ end -- make the includedir flag function nf_includedir(self, dir) - return "-I" .. dir + return "-I" .. os.args(dir) end -- make the link flag @@ -139,12 +139,12 @@ end -- make the linkdir flag function nf_linkdir(self, dir) - return "-L-L" .. dir + return "-L-L" .. os.args(dir) end -- make the rpathdir flag function nf_rpathdir(self, dir) - local flag = "-L-rpath=" .. dir + local flag = "-L-rpath=" .. os.args(dir) if self:has_flags(flag) then return flag end -- cgit v1.3.1