summaryrefslogtreecommitdiff
path: root/examples/Kaleidoscope/MCJIT/cached/Makefile
blob: dde39a75d767504bb44813b79c099711fe88da8e (plain)
1
2
3
4
5
6
7
8
9
10
11
all: toy-mcjit toy-jit toy-ir-gen

toy-mcjit : toy.cpp
	clang++ toy.cpp -g -O3 -rdynamic -fno-rtti `llvm-config --cppflags --ldflags --libs core mcjit native irreader` -o toy-mcjit

toy-jit : toy-jit.cpp
	clang++ toy-jit.cpp -g -O3 -rdynamic -fno-rtti `llvm-config --cppflags --ldflags --libs core jit native irreader` -o toy-jit

# This is a special build for the purpose of converting Kaleidoscope input to an IR file
toy-ir-gen : toy-jit.cpp
	clang++ toy-jit.cpp -g -O3 -rdynamic -fno-rtti -DDUMP_FINAL_MODULE `llvm-config --cppflags --ldflags --libs core jit native irreader` -o toy-ir-gen