diff options
| author | ruki <[email protected]> | 2021-02-09 16:37:27 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-02-09 16:37:27 +0800 |
| commit | b5b7cf1d0574b789d0d7d8a5ced75eaf16e82a99 (patch) | |
| tree | 76ad10c3bf0d70c57aa5ea5a0c2e007d024f15a9 /xmake/modules/core/tools/zig.lua | |
| parent | c4d7b7994101e9ed897a19fefc660874d9528f6c (diff) | |
| parent | e37dbcd878fcb455b69ed57e7f271a8e614fb494 (diff) | |
Merge pull request #1236 from xmake-io/space
Fix includedirs with spaces
Diffstat (limited to 'xmake/modules/core/tools/zig.lua')
| -rw-r--r-- | xmake/modules/core/tools/zig.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xmake/modules/core/tools/zig.lua b/xmake/modules/core/tools/zig.lua index ce03bc3cd..2270e2a3e 100644 --- a/xmake/modules/core/tools/zig.lua +++ b/xmake/modules/core/tools/zig.lua @@ -75,29 +75,29 @@ end -- make the linkdir flag function nf_linkdir(self, dir) - return "-L" .. os.args(dir) + return {"-L", dir} end -- make the framework flag function nf_framework(self, framework) - return "-framework " .. framework + return {"-framework", framework} end -- make the frameworkdir flag function nf_frameworkdir(self, frameworkdir) - return "-F " .. os.args(path.translate(frameworkdir)) + return {"-F", path.translate(frameworkdir)} end -- make the rpathdir flag function nf_rpathdir(self, dir) dir = path.translate(dir) if is_plat("macosx") then - return "-rpath " .. os.args(dir:gsub("%$ORIGIN", "@loader_path")) + return {"-rpath", (dir:gsub("%$ORIGIN", "@loader_path"))} else - return "-rpath " .. os.args(dir:gsub("@[%w_]+", function (name) + return {"-rpath", (dir:gsub("@[%w_]+", function (name) local maps = {["@loader_path"] = "$ORIGIN", ["@executable_path"] = "$ORIGIN"} return maps[name] - end)) + end))} end end |
