diff options
author | Zhu Xing <gooddaygeorge@gmail.com> | 2019-08-10 08:19:21 +0000 |
---|---|---|
committer | Zhu Xing <gooddaygeorge@gmail.com> | 2019-08-10 08:22:38 +0000 |
commit | ed603dcba2984b717bcdf9b06f0e8ec7554e0523 (patch) | |
tree | 7b54be17378b54abf56e8c5b8ce1743f3f4607db /llvm_mode | |
parent | 41d2e7d6b6ac1bab20f73e1e023c8450bbfc657e (diff) | |
download | AFLplusplus-ed603dcba2984b717bcdf9b06f0e8ec7554e0523.tar.gz |
llvm-mode: Get the clang version correctly
When using clang-8.0, The previous command in the
Makefile will get two 8.0.0, thus a warning message print.
Diffstat (limited to 'llvm_mode')
-rw-r--r-- | llvm_mode/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm_mode/Makefile b/llvm_mode/Makefile index 3923f8e3..66490184 100644 --- a/llvm_mode/Makefile +++ b/llvm_mode/Makefile @@ -75,7 +75,7 @@ endif # sanity check. # Are versions of clang --version and llvm-config --version equal? -CLANGVER = $(shell $(CC) --version | sed -E -ne '/^.*([0-9]\.[0-9]\.[0-9]).*/s//\1/p') +CLANGVER = $(shell $(CC) --version | sed -ne "1,2p" | sed -E -ne '/^.*([0-9]\.[0-9]\.[0-9]).*/s//\1/p') ifeq "$(shell echo '\#include <sys/ipc.h>@\#include <sys/shm.h>@int main() { int _id = shmget(IPC_PRIVATE, 65536, IPC_CREAT | IPC_EXCL | 0600); shmctl(_id, IPC_RMID, 0); return 0;}' | tr @ '\n' | $(CC) -x c - -o .test2 2>/dev/null && echo 1 || echo 0 )" "1" |