diff options
| author | Ying Wang <wangying@google.com> | 2012-09-11 16:05:31 -0700 |
|---|---|---|
| committer | Ying Wang <wangying@google.com> | 2012-09-11 16:13:12 -0700 |
| commit | 828ded66831c0caaeecd2291a6bfb084f373d0e4 (patch) | |
| tree | d2f2adf57f9eef14133b094b416ed65c55884404 | |
| parent | d62cdbe700ab288e9ad447824066edb7d17167d9 (diff) | |
| download | external_llvm-828ded66831c0caaeecd2291a6bfb084f373d0e4.zip external_llvm-828ded66831c0caaeecd2291a6bfb084f373d0e4.tar.gz external_llvm-828ded66831c0caaeecd2291a6bfb084f373d0e4.tar.bz2 | |
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
| -rw-r--r-- | lib/Target/ARM/AsmParser/Android.mk | 6 |
1 files changed, 4 insertions, 2 deletions
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) |
