Skip to content

Commit 0726f12

Browse files
committed
Escape spaces in rpath with quotes
1 parent 446ad5e commit 0726f12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tools/gcc.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@
426426

427427
for _, fullpath in ipairs(dirs) do
428428
local rpath = path.getrelative(cfg.buildtarget.directory, fullpath)
429+
rpath = p.quoted(rpath) -- quote in case of spaces in path
429430
if table.contains(os.getSystemTags(cfg.system), "darwin") then
430431
rpath = "@loader_path/" .. rpath
431432
elseif (cfg.system == p.LINUX) then

0 commit comments

Comments
 (0)