diff options
author | hexcoder- <heiko@hexco.de> | 2019-08-10 17:10:18 +0200 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2019-08-10 17:10:18 +0200 |
commit | 0612aa2b65a6995c8cd372385a0d096efef7ba93 (patch) | |
tree | 07c818c29128091b730fa49dac68b30e04a22789 | |
parent | 3937764ac5f975c103e566ff31bfa50356f84c02 (diff) | |
download | afl++-0612aa2b65a6995c8cd372385a0d096efef7ba93.tar.gz |
optimized version extraction for clang (restricted to first line)
-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 66490184..fc7a6fd9 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 -ne "1,2p" | sed -E -ne '/^.*([0-9]\.[0-9]\.[0-9]).*/s//\1/p') +CLANGVER = $(shell $(CC) --version | sed -E -ne '1{/^.*([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" |