summaryrefslogtreecommitdiffstats
path: root/core/main.mk
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2012-11-09 11:12:42 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-11-09 11:12:42 -0800
commit60a34ed5011efe7796173a1a63c13d28ae7878fa (patch)
treef76bace44e9431782f94c70d579786f6b08d5796 /core/main.mk
parent00f2432653edf9debcae940ce0c3444527fd3070 (diff)
parentfc76f0eb17c606eb6df639d7a6c2f4ef2f3e09f1 (diff)
downloadbuild-60a34ed5011efe7796173a1a63c13d28ae7878fa.zip
build-60a34ed5011efe7796173a1a63c13d28ae7878fa.tar.gz
build-60a34ed5011efe7796173a1a63c13d28ae7878fa.tar.bz2
am fc76f0eb: am 2ea957a3: Merge "Revise checks for MacOSX to build emulator"
* commit 'fc76f0eb17c606eb6df639d7a6c2f4ef2f3e09f1': Revise checks for MacOSX to build emulator
Diffstat (limited to 'core/main.mk')
-rw-r--r--core/main.mk19
1 files changed, 1 insertions, 18 deletions
diff --git a/core/main.mk b/core/main.mk
index ecea8de..771b9b3 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -158,7 +158,7 @@ $(error stop)
endif
ifeq (darwin,$(HOST_OS))
-GCC_REALPATH = $(realpath $(shell which gcc))
+GCC_REALPATH = $(realpath $(shell which $(HOST_CC)))
ifneq ($(findstring llvm-gcc,$(GCC_REALPATH)),)
# Using LLVM GCC results in a non functional emulator due to it
# not honouring global register variables
@@ -170,23 +170,6 @@ ifneq ($(findstring llvm-gcc,$(GCC_REALPATH)),)
else
BUILD_EMULATOR := true
endif
-# When building on Leopard or above, we need to use the 10.4 SDK
-# or the generated binary will not run on Tiger.
-darwin_version := $(strip $(shell sw_vers -productVersion))
-ifneq ($(filter 10.1 10.2 10.3 10.1.% 10.2.% 10.3.% 10.4 10.4.%,$(darwin_version)),)
- $(error Building the Android emulator requires OS X 10.5 or above)
-endif
-ifneq ($(filter 10.5 10.5.% 10.6 10.6.%,$(darwin_version)),)
- # We are on Leopard or Snow Leopard
- MSDK=10.5
-else
- # We are on Lion or beyond, and 10.6 SDK is the minimum in Xcode 4.x
- MSDK=10.6
-endif
-MACOSX_SDK := /Developer/SDKs/MacOSX$(MSDK).sdk
-ifeq ($(strip $(wildcard $(MACOSX_SDK))),)
- BUILD_EMULATOR := false
-endif
else # HOST_OS is not darwin
BUILD_EMULATOR := true
endif # HOST_OS is darwin