TaskStats: simplify margin formula
[xcsoar.git] / build / llvm.mk
blobe04434a3d5fcba78381f2f3e2c919e2ecd27fd96
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),nn)
16 OPTIMIZE := -O4 -DNDEBUG -Wuninitialized
17 AR += --plugin /usr/local/lib/LLVMgold.so
18 endif
20 ifeq ($(USE_CCACHE),y)
21 # ccache will not use the optimisation of avoiding the 2nd call to the
22 # pre-processor by compiling the pre-processed output that was used for
23 # finding the hash in the case of a cache miss.
24 CCACHE := export CCACHE_CPP2=yes && $(CCACHE)
25 endif
27 ifeq ($(TARGET),ANDROID)
28 TARGET_ARCH := $(filter-out -mthumb-interwork,$(TARGET_ARCH))
29 TARGET_ARCH += -gcc-toolchain $(ANDROID_GCC_TOOLCHAIN)
30 TARGET_ARCH += -target $(LLVM_TRIPLE)
31 TARGET_CPPFLAGS += -DBIONIC -DLIBCPP_NO_IOSTREAM
32 endif # Android
34 ifeq ($(TARGET_IS_PI),y)
35 TARGET_LLVM_FLAGS = -march=arm -mcpu=arm1136jf-s -mattr=+vfp2 -float-abi=hard \
36 -enable-no-infs-fp-math -enable-no-nans-fp-math -enable-unsafe-fp-math
37 TARGET_ARCH := -target armv6-none-linux-gnueabihf -mfloat-abi=hard -mfpu=vfp -integrated-as
38 endif
40 ifeq ($(HOST_IS_PI)$(TARGET_IS_PI),ny)
41 TARGET_CPPFLAGS += -isystem /opt/pi/root/usr/include/c++/4.6
42 TARGET_CPPFLAGS += -isystem /opt/pi/root/usr/include/c++/4.6/arm-linux-gnueabihf
43 TARGET_LDFLAGS += -L$(PI)/usr/lib/gcc/arm-linux-gnueabihf/4.6
44 endif
46 endif