OSDN Git Service

Merge "Switch to x86_64 instead of i386 for default host compilation."
[android-x86/external-llvm.git] / lib / Linker / Android.mk
1 LOCAL_PATH:= $(call my-dir)
2
3 linker_SRC_FILES := \
4   LinkModules.cpp
5
6 # For the host
7 # =====================================================
8 include $(CLEAR_VARS)
9 include $(CLEAR_TBLGEN_VARS)
10
11 LOCAL_SRC_FILES := $(linker_SRC_FILES)
12
13 LOCAL_MODULE:= libLLVMLinker
14 LOCAL_MODULE_HOST_OS := darwin linux windows
15
16 include $(LLVM_HOST_BUILD_MK)
17 include $(BUILD_HOST_STATIC_LIBRARY)
18
19 # For the device
20 # =====================================================
21 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
22 include $(CLEAR_VARS)
23
24 LOCAL_SRC_FILES := $(linker_SRC_FILES)
25
26 LOCAL_MODULE:= libLLVMLinker
27
28 include $(LLVM_DEVICE_BUILD_MK)
29 include $(LLVM_GEN_INTRINSICS_MK)
30 include $(BUILD_STATIC_LIBRARY)
31 endif