Commit 3bf1ff14 authored by Christian Dietrich's avatar Christian Dietrich
Browse files

wrappers: make wrappers compatible with autotools. again.

parent c5aac6a9
Pipeline #2988 passed with stage
in 0 seconds
#!/usr/bin/env bash
printf -v ARGS "%q " "$@"
${CCACHE} ${LLVM_C_COMPILER} $ARGS
exec ${CCACHE} ${LLVM_C_COMPILER} "$@"
......@@ -3,8 +3,10 @@
# Wrapper for clang, that supports (only) fast hash-based
# recompilation.
printf -v ARGS "%q " "$@"
${LLVM_C_COMPILER} -fplugin=${PROJECT_BINARY_DIR}/src/libclang-hash.so \
if [[ ( "$@" =~ ".* -c .*") && ( "$@" =~ ".* -o. *" ) && ! ( "$@" =~ ".*/dev/null" ) ]]; then
exec ${LLVM_C_COMPILER} -fplugin=${PROJECT_BINARY_DIR}/src/libclang-hash.so \
-Xclang -plugin-arg-clang-hash -Xclang -stop-if-same-hash \
$ARGS
"$@"
else
exec ${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