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
c6dc85d9
Commit
c6dc85d9
authored
Jan 12, 2017
by
Christian Dietrich
Browse files
wrappers: divert between whole project and in-depth wrappers
parent
7dff802e
Changes
4
Hide whitespace changes
Inline
Side-by-side
wrappers/CMakeLists.txt
View file @
c6dc85d9
# These two wrappers are used to gather in-depth information about the
# hashing process. Using them does not yield proper timing information
# about the overall compilation process.
configure_file
(
clang-hash.in
${
PROJECT_BINARY_DIR
}
/wrappers/clang-hash
)
configure_file
(
clang.in
${
PROJECT_BINARY_DIR
}
/wrappers/clang
)
configure_file
(
clang-hash-collect.in
${
PROJECT_BINARY_DIR
}
/wrappers/clang-hash-collect
)
# These wrappers can be used for the actual (re)compilation of whole procects.
execute_process
(
COMMAND
"
${
CMAKE_COMMAND
}
"
"-E"
"create_symlink"
"
${
LLVM_C_COMPILER
}
"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/clang-normal"
)
configure_file
(
clang-hash-stop.in
${
PROJECT_BINARY_DIR
}
/wrappers/clang-hash-stop
)
# Symlink compiler wrappers
execute_process
(
...
...
wrappers/clang.in
→
wrappers/clang
-hash-collect
.in
View file @
c6dc85d9
File moved
wrappers/clang-hash-stop.in
0 → 100755
View file @
c6dc85d9
#!/usr/bin/env bash
# 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
wrappers/clang-hash.in
View file @
c6dc85d9
#!/usr/bin/env bash
# This wrapper script should be used, if you want to gather insight
# information about the hashing process. It calls the given clang
# compiler with our plugin and outputs the information on stderr.
printf
-v
ARGS
"%q "
"
$@
"
...
...
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