I have a vague recollection of reviewing a change recently that I
think in retrospect broke this for make. The trickiness is that each
foo.o: foo.cc line has a "target-local" definition of CXXFLAGS,
because otherwise any file mutating CXXFLAGS would mutate it for all
rules.
Without thinking through the consequences too hard, I think you could
modify these lines in the generator:
self.WriteLn("$(OBJS): CFLAGS := $(CFLAGS_$(BUILDTYPE)) "
"$(CFLAGS_C_$(BUILDTYPE)) "
"$(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE))")
self.WriteLn("$(OBJS): CXXFLAGS := $(CFLAGS_$(BUILDTYPE)) "
"$(CFLAGS_CC_$(BUILDTYPE)) "
"$(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE))")
to add in a reference $(CXXFLAGS) as well after the := , as that would
reference the "global" CXXFLAGS while modifying only the local one.
On Tue, Sep 22, 2009 at 1:32 AM, Lei Zhang <[email protected]> wrote:
>
> Looks like both CXXFLAGS=foo make and CXXFLAGS=foo hammer ignore
> CXXFLAGS. Is this by design?
>
> On Tue, Sep 22, 2009 at 12:07 AM, James Su <[email protected]> wrote:
>> Hi,
>> I'd like to compile chromium with some special CFLAGS/CXXFLAGS, how can I
>> do? I'm using make build on 64bit Linux.
>> Regards
>> James Su
>> >
>>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected]
View archives, change email options, or unsubscribe:
http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---