[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1.3] build: compile translate.o at -O1 optimizat
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 1.3] build: compile translate.o at -O1 optimization |
Date: |
Tue, 27 Nov 2012 17:55:20 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
Il 27/11/2012 17:49, Markus Armbruster ha scritto:
>>> +%/translate.o: CFLAGS := $(patsubst -O2,-O1,$(CFLAGS))
>>> +
>>
>> This may change some string argument in CFLAGS, for example an argument
>> to -I.
>>
>> How about:
>>
>> CFLAGS_opt = -O2
>> CFLAGS += $(CFLAGS_opt)
>> ...
>> %/translate.o: CFLAGS_opt = -O1
>
> Just append -O1 to CFLAGS; the last -O wins.
But you don't want to override -O0...
Anyhow, v2 was posted and does it in a different, more fine-grained manner.
Paolo
- Re: [Qemu-devel] [PATCH 1.3] build: compile translate.o at -O1 optimization, (continued)
Re: [Qemu-devel] [PATCH 1.3] build: compile translate.o at -O1 optimization, Avi Kivity, 2012/11/27
[Qemu-devel] [PATCH 1.3] build: compile translate.o at -O1 optimization, Paolo Bonzini, 2012/11/27