Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christian Dietrich
clang-hash
Commits
3bf1ff14
Commit
3bf1ff14
authored
Jan 12, 2017
by
Christian Dietrich
Browse files
wrappers: make wrappers compatible with autotools. again.
parent
c5aac6a9
Pipeline
#2988
passed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
wrappers/clang-ccache.in
View file @
3bf1ff14
#!/usr/bin/env bash
printf
-v
ARGS
"%q "
"
$@
"
${
CCACHE
}
${
LLVM_C_COMPILER
}
$ARGS
exec
${
CCACHE
}
${
LLVM_C_COMPILER
}
"
$@
"
wrappers/clang-hash-stop.in
View file @
3bf1ff14
...
...
@@ -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
\
-Xclang
-plugin-arg-clang-hash
-Xclang
-stop-if-same-hash
\
$ARGS
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
\
"
$@
"
else
exec
${
LLVM_C_COMPILER
}
"
$@
"
fi
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment