OSDN Git Service

Use O0 for the win_sdk build too
authorYing Wang <wangying@google.com>
Tue, 11 Sep 2012 23:05:31 +0000 (16:05 -0700)
committerYing Wang <wangying@google.com>
Tue, 11 Sep 2012 23:13:12 +0000 (16:13 -0700)
To avoid the super long compilation with /usr/bin/i586-mingw32msvc-g++
4.2.

Change-Id: I4b434893ca4789e10b6fb0d44275eb82cb1be040

lib/Target/ARM/AsmParser/Android.mk

index 105e463..5e64e27 100644 (file)
@@ -34,9 +34,11 @@ TBLGEN_TD_DIR := $(arm_asm_parser_TBLGEN_TD_DIR)
 
 include $(LLVM_HOST_BUILD_MK)
 include $(LLVM_TBLGEN_RULES_MK)
-ifeq (darwin,$(BUILD_OS))
+ifneq (,$(filter windows darwin,$(HOST_OS)))
 # Override the default optimization level to work around taking forever (~50m)
-# to compile ARMAsmParser.cpp on Mac with gcc 4.2.
+# to compile ARMAsmParser.cpp on Mac with gcc 4.2,
+# or on Linux with mingw32msvc-gcc 4.2, which is used to cross-compile
+# the win_sdk.
 LOCAL_CFLAGS += -O0
 endif
 include $(BUILD_HOST_STATIC_LIBRARY)