Skip to content

Commit

Permalink
Don't try to fix up double-dashed commands in ar like --version
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Aug 14, 2020
1 parent bed945d commit 910289f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Runner.jl
Expand Up @@ -396,7 +396,10 @@ function generate_compiler_wrappers!(platform::Platform; bin_path::AbstractStrin
ar_name = "llvm-ar"
end
extra_cmds = raw"""
if [[ " ${ARGS[0]} " != *'U'* ]]; then
if [[ " ${ARGS[0]} " =~ --* ]]; then
# do nothing, it's probably --version or something
true
elif [[ " ${ARGS[0]} " != *'U'* ]]; then
# Eliminate the `u` option, as it's incompatible with `D` and is just an optimization
if [[ " ${ARGS[0]} " == *'u'* ]]; then
ARGS[0]=$(echo "${ARGS[0]}" | tr -d u)
Expand Down

0 comments on commit 910289f

Please sign in to comment.