diff --git a/src/fparse-llvm.in b/src/fparse-llvm.in index 12eac17..ac398ca 100755 --- a/src/fparse-llvm.in +++ b/src/fparse-llvm.in @@ -104,6 +104,7 @@ for arg in "$@"; do FORTRAN_CONFIG_FILE="${arg#--config_file=}" shift || true #echo "args remaining: $*" + # Begin sanitizing options/flags that cause the frontend plugin to throw an error elif [[ $arg == -- ]]; then shift #forward_remaining_args=true @@ -114,6 +115,18 @@ for arg in "$@"; do elif [[ $arg == -g ]]; then shift || true #echo "args remaining: $*" + elif [[ $arg == -c ]]; then + shift || true + #echo "args remaining: $*" + elif [[ $arg == -s ]]; then + shift || true + #echo "args remaining: $*" + elif [[ $arg == -shared || $arg == -static ]]; then + shift || true + #echo "args remaining: $*" + elif [[ $arg == -Wl,* ]]; then + shift || true + #echo "args remaining: $*" elif [[ -n ${arg:-} ]]; then args+=("${arg}") shift || true