Renderer, ...: use PixelRect::GetCenter()
[xcsoar.git] / build / llvm.mk
blobb11589310fcddddc9b5d4836a67aa45b216308c6
1 ifeq ($(CLANG),y)
3 ifneq ($(TARGET),ANDROID)
4 ifneq ($(ANALYZER),y)
5 CXX = clang++
6 CC = clang
7 endif
9 HOSTCC = $(CC)
10 HOSTCXX = $(CXX)
11 endif
13 DEPFLAGS = -MD -MF $(DEPFILE) -MT $@
15 ifeq ($(DEBUG)$(LLVM)$(LTO),nny)
16 AR += --plugin /usr/local/lib/LLVMgold.so
17 endif
19 ifeq ($(USE_CCACHE),y)
20 # ccache will not use the optimisation of avoiding the 2nd call to the
21 # pre-processor by compiling the pre-processed output that was used for
22 # finding the hash in the case of a cache miss.
23 CCACHE := export CCACHE_CPP2=yes && $(CCACHE)
24 endif
26 ifeq ($(TARGET),ANDROID)
27 TARGET_ARCH := $(filter-out -mthumb-interwork,$(TARGET_ARCH))
28 TARGET_ARCH += -gcc-toolchain $(ANDROID_GCC_TOOLCHAIN)
29 TARGET_ARCH += -target $(LLVM_TRIPLE)
30 TARGET_CPPFLAGS += -DBIONIC -DLIBCPP_NO_IOSTREAM
31 endif # Android
33 ifeq ($(TARGET_IS_PI),y)
34 TARGET_LLVM_FLAGS = -march=arm -mcpu=arm1136jf-s -mattr=+vfp2 -float-abi=hard \
35 -enable-no-infs-fp-math -enable-no-nans-fp-math -enable-unsafe-fp-math
36 TARGET_ARCH := -target armv6-none-linux-gnueabihf -mfloat-abi=hard -mfpu=vfp -integrated-as
37 endif
39 ifeq ($(HOST_IS_PI)$(TARGET_IS_PI),ny)
40 TARGET_CPPFLAGS += -isystem /opt/pi/root/usr/include/c++/4.6
41 TARGET_CPPFLAGS += -isystem /opt/pi/root/usr/include/c++/4.6/arm-linux-gnueabihf
42 TARGET_LDFLAGS += -L$(PI)/usr/lib/gcc/arm-linux-gnueabihf/4.6
43 endif
45 endif