Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
littledivy committed May 6, 2024
1 parent 89c7a0c commit fa43fdf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/lzld/lzld
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ fi

# Filter out `-framework` arguments.
args=()

while [ $# -gt 0 ]; do
case "$1" in
-framework)
Expand All @@ -24,7 +25,8 @@ while [ $# -gt 0 ]; do
esac
done

args+=("-L$(dirname "$(realpath "$0")") -llzld_${arch}")
args+=("-L$(dirname "$(realpath "$0")")")
args+=("-llzld_${arch}")

# Run `lld` with the filtered arguments.
exec "$lld" "${args[@]}"

0 comments on commit fa43fdf

Please sign in to comment.