From 828ded66831c0caaeecd2291a6bfb084f373d0e4 Mon Sep 17 00:00:00 2001 From: Ying Wang Date: Tue, 11 Sep 2012 16:05:31 -0700 Subject: Use O0 for the win_sdk build too To avoid the super long compilation with /usr/bin/i586-mingw32msvc-g++ 4.2. Change-Id: I4b434893ca4789e10b6fb0d44275eb82cb1be040 --- lib/Target/ARM/AsmParser/Android.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/Target/ARM/AsmParser') diff --git a/lib/Target/ARM/AsmParser/Android.mk b/lib/Target/ARM/AsmParser/Android.mk index 105e463..5e64e27 100644 --- a/lib/Target/ARM/AsmParser/Android.mk +++ b/lib/Target/ARM/AsmParser/Android.mk @@ -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) -- cgit v1.1