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

clang-hash wrapper: call clang-hash correctly

parent 4098c4ee
/* The gcc uses an internal counter for names he has seen. This
* counter is used to name static local variables */
typedef int UNUSED; {{A}}
{{B}}
void foo() {
static int A;
(void) A;
}
/*
* check-name: internal linkage name changes
* compile-command: /usr/bin/gcc
* compile-flags: -fdata-sections -Wall
* B == A
*/
......@@ -3,4 +3,4 @@
printf -v ARGS "%q " "$@"
${CMAKE_C_COMPILER} -Xclang -load -Xclang ${PROJECT_BINARY_DIR}/src/libclang-hash.so -Xclang -add-plugin -Xclang hash-unit $ARGS -fsyntax-only
${CMAKE_C_COMPILER} -Xclang -load -Xclang ${PROJECT_BINARY_DIR}/src/libclang-hash.so -Xclang -plugin -Xclang hash-unit $ARGS
......@@ -54,7 +54,7 @@ if __name__ == "__main__":
logging.info(x)
A.append(x)
logging.info("%s", A)
logging.info("call clang-hash %s", " ".join(A))
stderr_fd = open("%s.clang-hash-stderr" % objectfile, "w+")
p = Popen(["clang-hash"] + A, stdin=PIPE, stderr = stderr_fd)
p.stdin.close()
......
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