[Orc][Kaleidoscope] Make the Orc/Kaleidoscope tutorials easier to build on

Darwin.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229761 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Lang Hames 2015-02-18 23:08:56 +00:00
parent ba3836a530
commit 1cf7924e3f
4 changed files with 40 additions and 12 deletions

View File

@ -1,8 +1,15 @@
.PHONY: all
all: toy
UNAME := $(shell uname -s)
ifeq ($(UNAME),Darwin)
CXX := xcrun --sdk macosx clang++
else
CXX := clang++
endif
LLVM_CXXFLAGS := $(shell llvm-config --cppflags --ldflags --system-libs --libs core orcjit native)
toy: toy.cpp
clang++ -Wall -std=c++11 toy.cpp -g -O0 -rdynamic -fno-rtti `llvm-config --cppflags --ldflags --system-libs --libs core orcjit native` -o toy
$(CXX) $(LLVM_CXXFLAGS) -Wall -std=c++14 -g -O0 -rdynamic -fno-rtti -o toy toy.cpp
.PHONY: clean
clean:

View File

@ -1,8 +1,15 @@
.PHONY: all
all: toy
UNAME := $(shell uname -s)
ifeq ($(UNAME),Darwin)
CXX := xcrun --sdk macosx clang++
else
CXX := clang++
endif
LLVM_CXXFLAGS := $(shell llvm-config --cppflags --ldflags --system-libs --libs core orcjit native)
toy: toy.cpp
clang++ -Wall -std=c++11 toy.cpp -g -O0 -rdynamic -fno-rtti `llvm-config --cppflags --ldflags --system-libs --libs core orcjit native` -o toy
$(CXX) $(LLVM_CXXFLAGS) -Wall -std=c++14 -g -O0 -rdynamic -fno-rtti -o toy toy.cpp
.PHONY: clean
clean:

View File

@ -1,8 +1,15 @@
.PHONY: all
all: toy
UNAME := $(shell uname -s)
ifeq ($(UNAME),Darwin)
CXX := xcrun --sdk macosx clang++
else
CXX := clang++
endif
LLVM_CXXFLAGS := $(shell llvm-config --cppflags --ldflags --system-libs --libs core orcjit native)
toy: toy.cpp
clang++ -Wall -std=c++11 toy.cpp -g -O0 -rdynamic -fno-rtti `llvm-config --cppflags --ldflags --system-libs --libs core orcjit native` -o toy
$(CXX) $(LLVM_CXXFLAGS) -Wall -std=c++14 -g -O0 -rdynamic -fno-rtti -o toy toy.cpp
.PHONY: clean
clean:

View File

@ -1,8 +1,15 @@
.PHONY: all
all: toy
UNAME := $(shell uname -s)
ifeq ($(UNAME),Darwin)
CXX := xcrun --sdk macosx clang++
else
CXX := clang++
endif
LLVM_CXXFLAGS := $(shell llvm-config --cppflags --ldflags --system-libs --libs core orcjit native)
toy: toy.cpp
clang++ -Wall -std=c++11 toy.cpp -g -O0 -rdynamic -fno-rtti `llvm-config --cppflags --ldflags --system-libs --libs core orcjit native` -o toy
$(CXX) $(LLVM_CXXFLAGS) -Wall -std=c++14 -g -O0 -rdynamic -fno-rtti -o toy toy.cpp
.PHONY: clean
clean: