From patchwork Tue Nov 27 08:36:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1.3] build: compile translate.o at -O1 optimization From: Paolo Bonzini X-Patchwork-Id: 202121 Message-Id: <1354005361-17805-1-git-send-email-pbonzini@redhat.com> To: qemu-devel@nongnu.org Date: Tue, 27 Nov 2012 09:36:01 +0100 Some versions of GCC require insane (>2GB) amounts of memory to compile translate.o. As a countermeasure, compile it with -O1. This should fix the buildbot failure for default_x86_64_fedora16. Signed-off-by: Paolo Bonzini --- Makefile.target | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile.target b/Makefile.target index 8b658c0..3981931 100644 --- a/Makefile.target +++ b/Makefile.target @@ -143,6 +143,8 @@ GENERATED_HEADERS += hmp-commands.h qmp-commands-old.h endif # CONFIG_SOFTMMU +%/translate.o: CFLAGS := $(patsubst -O2,-O1,$(CFLAGS)) + nested-vars += obj-y # This resolves all nested paths, so it must come last