Skip to content

Commit

Permalink
Update xmake.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi authored Sep 9, 2024
1 parent 8588a96 commit cc88f98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ target("add")

-- inject libsub to libadd
local rpathdir = ""
if is_plat("linux", "android") then
if target:is_plat("linux", "android") then
rpathdir = "$ORIGIN/"
elseif is_plat("macosx", "iphoneos") then
elseif target:is_plat("macosx", "iphoneos") then
rpathdir = "@loader_path/"
end
os.vrunv(luject:targetfile(), {"-i", target:targetfile(), "-o", target:targetfile(), rpathdir .. path.filename(target:dep("sub"):targetfile())})
Expand Down

0 comments on commit cc88f98

Please sign in to comment.