diff options
| author | van Hauser <vh@thc.org> | 2020-05-01 00:57:20 +0200 |
|---|---|---|
| committer | van Hauser <vh@thc.org> | 2020-05-01 00:57:20 +0200 |
| commit | 9d03763d942c19ac9c6cbe7d6a3f3cecba65abad (patch) | |
| tree | 604cdac1f88cf5a80bd0051ff3a8275a9108ca55 /llvm_mode/README.md | |
| parent | 477fb58311d19148b4f0a11285f56f9fea957d47 (diff) | |
| download | afl++-9d03763d942c19ac9c6cbe7d6a3f3cecba65abad.tar.gz | |
at some point we have to do a rewrite of llvm_mode/GNUmakefile
Diffstat (limited to 'llvm_mode/README.md')
| -rw-r--r-- | llvm_mode/README.md | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/llvm_mode/README.md b/llvm_mode/README.md index 607350fb..0bff1ff1 100644 --- a/llvm_mode/README.md +++ b/llvm_mode/README.md @@ -37,7 +37,26 @@ co-exists with the original code. The idea and much of the implementation comes from Laszlo Szekeres. -## 2) How to use this +## 2a) How to use this - short + +Set the `LLVM_CONFIG` variable to the clang version you want to use, e.g. +``` +LLVM_CONFIG=llvm-config-9 make +``` +In case you have your own compiled llvm version specify the full path: +``` +LLVM_CONFIG=~/llvm-project/build/bin/llvm-config make +``` +If you try to use a new llvm version on an old Linux this can fail because of +old c++ libraries. In this case usually switching to gcc/g++ to compile +llvm_mode will work: +``` +LLVM_CONFIG=llvm-config-7 REAL_CC=gcc REAL_CXX=g++ make +``` +It is highly recommended to use the newest clang version you can put your +hands on :) + +## 2b) How to use this - long In order to leverage this mechanism, you need to have clang installed on your system. You should also make sure that the llvm-config tool is in your path |
