1 UNAME := $(shell uname -s)
4 CXX := xcrun --sdk macosx clang++
9 LLVM_CXXFLAGS := $(shell llvm-config --cxxflags)
10 LLVM_LDFLAGS := $(shell llvm-config --ldflags --system-libs --libs core orcjit native)
13 $(CXX) $(LLVM_CXXFLAGS) -Wall -std=c++11 -g -O0 -rdynamic -fno-rtti -o toy toy.cpp $(LLVM_LDFLAGS)