Skip to content

Commit

Permalink
Escape spaces in rpath with quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
nickclark2016 committed Feb 20, 2025
1 parent 446ad5e commit 0726f12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tools/gcc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@

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

0 comments on commit 0726f12

Please sign in to comment.