summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/link.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-02-09 16:37:27 +0800
committerGitHub <[email protected]>2021-02-09 16:37:27 +0800
commitb5b7cf1d0574b789d0d7d8a5ced75eaf16e82a99 (patch)
tree76ad10c3bf0d70c57aa5ea5a0c2e007d024f15a9 /xmake/modules/core/tools/link.lua
parentc4d7b7994101e9ed897a19fefc660874d9528f6c (diff)
parente37dbcd878fcb455b69ed57e7f271a8e614fb494 (diff)
Merge pull request #1236 from xmake-io/space
Fix includedirs with spaces
Diffstat (limited to 'xmake/modules/core/tools/link.lua')
-rw-r--r--xmake/modules/core/tools/link.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/link.lua b/xmake/modules/core/tools/link.lua
index 26abc8983..9a70de9ce 100644
--- a/xmake/modules/core/tools/link.lua
+++ b/xmake/modules/core/tools/link.lua
@@ -78,7 +78,7 @@ function nf_symbol(self, level, target)
local targetkind = target:get("kind")
if level == "debug" and (targetkind == "binary" or targetkind == "shared") then
if target and target.symbolfile then
- flags = "-debug -pdb:" .. target:symbolfile()
+ flags = {"-debug", "-pdb:" .. target:symbolfile()}
else
flags = "-debug"
end
@@ -105,7 +105,7 @@ end
-- make the linkdir flag
function nf_linkdir(self, dir)
- return "-libpath:" .. os.args(path.translate(dir))
+ return {"-libpath:" .. path.translate(dir)}
end
-- make the link arguments list