diff options
author | van Hauser <vh@thc.org> | 2020-05-06 00:58:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-06 00:58:13 +0200 |
commit | df5215783414ddda7d9f371ccef5acb2235f66d0 (patch) | |
tree | 52ca748f7a90c9deb09d9380c19f8220f0f45105 /llvm_mode/README.md | |
parent | c7de368dc20078116bcb2e34b0f2237127802841 (diff) | |
parent | a13958b32b6a1d8cba6f82b0d1ad03801721e3ef (diff) | |
download | afl++-df5215783414ddda7d9f371ccef5acb2235f66d0.tar.gz |
Merge pull request #352 from AFLplusplus/dev
Pull to master because of crash in string compare transform
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 |