Commit df544943 authored by Christian Dietrich's avatar Christian Dietrich
Browse files

wrapper: slightly adapt the guard expression to match -c at the beginning of cmdline

parent 1393b816
......@@ -3,10 +3,10 @@
# Wrapper for clang, that supports (only) fast hash-based
# recompilation.
if [[ ( "$@" =~ .*" -c".* ) && ( "$@" =~ .*" -o".* ) && ! ( "$@" =~ .*"/dev/null".* ) ]]; then
exec ${LLVM_C_COMPILER} -fplugin=${PROJECT_BINARY_DIR}/src/libclang-hash.so \
if [[ ( " $@" =~ .*" -c".* ) && ( "$@" =~ .*" -o".* ) && ! ( "$@" =~ .*"/dev/null".* ) ]]; then
${LLVM_C_COMPILER} -fplugin=${PROJECT_BINARY_DIR}/src/libclang-hash.so \
-Xclang -plugin-arg-clang-hash -Xclang -stop-if-same-hash \
"$@"
else
exec ${LLVM_C_COMPILER} "$@"
${LLVM_C_COMPILER} "$@"
fi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment