Set LLVM_USE_PERF to 0 on hally.cpp as a hacky fix for llvm's apt bug on ARM
This commit is contained in:
parent
114d60999d
commit
b1858524e1
|
@ -108,24 +108,12 @@ Halley::Halley(std::unique_ptr<SereneContext> ctx,
|
|||
: nullptr),
|
||||
perfListener(
|
||||
// TODO: [llvm] Remove this line when apt.llvm.org fixed the undefined symbol
|
||||
// for createPerfJITListener
|
||||
#define LLVM_USE_PERF 1
|
||||
|
||||
#if LLVM_USE_PERF
|
||||
// for createPerfJITEventListener
|
||||
#define LLVM_USE_PERF 0
|
||||
ctx->opts.JITenablePerfNotificationListener
|
||||
? llvm::JITEventListener::createPerfJITEventListener()
|
||||
: nullptr
|
||||
#else
|
||||
nullptr
|
||||
#endif
|
||||
),
|
||||
jtmb(jtmb), dl(dl), ctx(std::move(ctx)) {
|
||||
#if LLVM_USE_PERF
|
||||
#include <hnt>;
|
||||
#else
|
||||
#include <fallllllse>
|
||||
#endif
|
||||
};
|
||||
: nullptr),
|
||||
jtmb(jtmb), dl(dl), ctx(std::move(ctx)){};
|
||||
|
||||
// MaybeJITPtr Halley::lookup(exprs::Symbol &sym) const {
|
||||
// HALLEY_LOG("Looking up: " << sym.toString());
|
||||
|
|
Loading…
Reference in New Issue