Skip to content

Commit

Permalink
fix: revert $@
Browse files Browse the repository at this point in the history
  • Loading branch information
aakropotkin committed Dec 30, 2023
1 parent 0799367 commit e7662be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sh-scripts/ccjs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ else
echo " .c .h .cc .cpp .hpp .cxx .hxx .c++ .h++ .ipp";
echo "Falling back to normal \`$CCJS_COMPILER' invocation."
} >&2;
exec "$CCJS_COMPILER" "$@";
exec "$CCJS_COMPILER" "${_cc_args[@]}";
fi

# Users can omit `-o' if they're using `-c'.
Expand Down Expand Up @@ -170,7 +170,7 @@ else
TMPFILE="$( mktmp_auto; )";

# Convert to object and back to deduplicate.
$JQ --argjson _ENTRY "$_ENTRY" ".+=[\$_ENTRY]|unique_by( .output )" \
$JQ --argjson _ENTRY "$_ENTRY" "[\$_ENTRY] + .|unique_by( .output )" \
"$CCJS_OUT" > "$TMPFILE";

# Backup the original file.
Expand All @@ -184,7 +184,7 @@ fi
# ---------------------------------------------------------------------------- #

if [[ -z "${CCJS_DONT_COMPILE:-}" ]]; then
exec "$CCJS_COMPILER" "$@";
exec "$CCJS_COMPILER" "${_cc_args[@]}";
fi


Expand Down

0 comments on commit e7662be

Please sign in to comment.