diff options
author | fanquake <fanquake@gmail.com> | 2023-06-05 16:54:23 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2023-06-05 17:00:42 +0100 |
commit | 28fd9716086f781f548423ea00e0e441e97037bc (patch) | |
tree | e2a126cbccf073bf43f8a9055b3682470622d71e /src/afl-fuzz-bitmap.c | |
parent | b644e48f36485c645cbc0dadf0fddb2aa14cc079 (diff) | |
download | afl++-28fd9716086f781f548423ea00e0e441e97037bc.tar.gz |
build: fix compiler version in build output
Currently, if I build like with Clang, I'll get: ```bash make LLVM_CONFIG=llvm-config-15 CC=clang-15 CXX=clang++-15 <snip> [+] Everything seems to be working, ready to compile. (gcc version 12.1.0 (Ubuntu 12.1.0-2ubuntu1~22.04) ) clang-15 -O2 -D_FORTIFY_SOURCE=1 .... ``` Which is somewhat confusing. Fix this, and in a way that still outputs the correct version info for Clang and GCC. Use `--version`, and pick the first line, as that is where they are consistent in output. `clang -v` gives the version first, whereas `gcc -v` gives the version on the last line. We switch to using $(CC), otherwise we also get incorrect output, and dropping CCVER altogether, given this is it's only use.
Diffstat (limited to 'src/afl-fuzz-bitmap.c')
0 files changed, 0 insertions, 0 deletions