Commit bb417df2 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Couple more fixes to move around llvm revisions

parent e6d53a98
...@@ -80,11 +80,16 @@ else ...@@ -80,11 +80,16 @@ else
LLVM_BIN := $(LLVM_BUILD)/Release/bin LLVM_BIN := $(LLVM_BUILD)/Release/bin
endif endif
LLVM_LINK_LIBS := core mcjit native bitreader ipo irreader jit debuginfo instrumentation LLVM_LINK_LIBS := core mcjit native bitreader ipo irreader debuginfo instrumentation
ifneq ($(ENABLE_INTEL_JIT_EVENTS),0) ifneq ($(ENABLE_INTEL_JIT_EVENTS),0)
LLVM_LINK_LIBS += inteljitevents LLVM_LINK_LIBS += inteljitevents
endif endif
NEED_OLD_JIT := $(shell if [ $(LLVM_REVISION) -le 216982 ]; then echo 1; else echo 0; fi )
ifeq ($(NEED_OLD_JIT),1)
LLVM_LINK_LIBS += jit
endif
LLVM_CXXFLAGS := $(shell $(LLVM_BUILD)/Release+Asserts/bin/llvm-config --cxxflags) LLVM_CXXFLAGS := $(shell $(LLVM_BUILD)/Release+Asserts/bin/llvm-config --cxxflags)
LLVM_LDFLAGS := $(shell $(LLVM_BUILD)/Release+Asserts/bin/llvm-config --ldflags --libs $(LLVM_LINK_LIBS)) LLVM_LDFLAGS := $(shell $(LLVM_BUILD)/Release+Asserts/bin/llvm-config --ldflags --libs $(LLVM_LINK_LIBS))
LLVM_LIB_DEPS := $(wildcard $(LLVM_BUILD)/Release+Asserts/lib/*) LLVM_LIB_DEPS := $(wildcard $(LLVM_BUILD)/Release+Asserts/lib/*)
......
...@@ -186,7 +186,7 @@ void initCodegen() { ...@@ -186,7 +186,7 @@ void initCodegen() {
#if LLVMREV < 215967 #if LLVMREV < 215967
llvm::EngineBuilder eb(new llvm::Module("empty_initial_module", g.context)); llvm::EngineBuilder eb(new llvm::Module("empty_initial_module", g.context));
#else #else
jlvm::EngineBuilder eb(std::unique_ptr<llvm::Module>(new llvm::Module("empty_initial_module", g.context))); llvm::EngineBuilder eb(std::unique_ptr<llvm::Module>(new llvm::Module("empty_initial_module", g.context)));
#endif #endif
#if LLVMREV < 216982 #if LLVMREV < 216982
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment