Fix for LLVM-15 (#3215)
This commit is contained in:
parent
522e00eda0
commit
df9b5b7e3d
@ -427,6 +427,7 @@ pub const LIBAFL_CC_LLVM_VERSION: Option<usize> = None;
|
||||
if cfg!(unix) {
|
||||
cxxflags.push(String::from("-shared"));
|
||||
cxxflags.push(String::from("-fPIC"));
|
||||
cxxflags.push(String::from("-std=c++17")); // std::nullopt_t requires this
|
||||
}
|
||||
if cfg!(windows) {
|
||||
cxxflags.push(String::from("-fuse-ld=lld"));
|
||||
|
@ -10,7 +10,11 @@
|
||||
#define HAVE_VECTOR_INTRINSICS 1
|
||||
|
||||
#include <optional>
|
||||
#if LLVM_VERSION_MAJOR >= 16
|
||||
// None constant being deprecated for LLVM-16, it is recommended
|
||||
// to use the std::nullopt_t type instead. (#1010)
|
||||
constexpr std::nullopt_t None = std::nullopt;
|
||||
#endif
|
||||
|
||||
// all llvm includes and friends
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
|
@ -283,6 +283,8 @@ PreservedAnalyses AFLCoverage::run(Module &M, ModuleAnalysisManager &MAM) {
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
/* Make up cur_loc */
|
||||
|
Loading…
x
Reference in New Issue
Block a user