diff options
author | vanhauser-thc <vh@thc.org> | 2023-04-15 11:36:58 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2023-04-15 11:36:58 +0200 |
commit | 120d009e7d7c425019e984c29e027af710a0a7df (patch) | |
tree | 52a736418652038e55d74f009687c298f8f54036 /GNUmakefile.llvm | |
parent | e12acaa20367f335549c2db97b88ac5c8ffbeab7 (diff) | |
download | afl++-120d009e7d7c425019e984c29e027af710a0a7df.tar.gz |
wasm support
Diffstat (limited to 'GNUmakefile.llvm')
-rw-r--r-- | GNUmakefile.llvm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/GNUmakefile.llvm b/GNUmakefile.llvm index 09e9b5be..a053403b 100644 --- a/GNUmakefile.llvm +++ b/GNUmakefile.llvm @@ -294,6 +294,11 @@ endif CLANG_CPPFL = `$(LLVM_CONFIG) --cxxflags` -fno-rtti -fPIC $(CXXFLAGS) -Wno-deprecated-declarations CLANG_LFL = `$(LLVM_CONFIG) --ldflags` $(LDFLAGS) +# wasm fuzzing: disable thread-local storage and unset LLVM debug flag +ifdef WAFL_MODE + $(info Compiling libraries for use with WAVM) + CLANG_CPPFL += -DNDEBUG -DNO_TLS +endif # User teor2345 reports that this is required to make things work on MacOS X. ifeq "$(SYS)" "Darwin" |