From 910289fa50d01b6da5e6858959981b31cd4014fa Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Fri, 14 Aug 2020 09:10:31 +0000 Subject: [PATCH] Don't try to fix up double-dashed commands in `ar` like `--version` --- src/Runner.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Runner.jl b/src/Runner.jl index bfa262c7..0c51f5fc 100644 --- a/src/Runner.jl +++ b/src/Runner.jl @@ -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)