[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disabling optimization

From: Thomas 'Tom' R. Treadway III
Subject: Re: Disabling optimization
Date: Thu, 18 Nov 2004 15:43:46 -0800

CXXFLAGS="`echo $CXXFLAGS | sed -e 's|-O2||'`"

On Nov 18, 2004, at 1:44 PM, Bob Friesenhahn wrote:

On Thu, 18 Nov 2004, Andrew Suffield wrote:
What you're all trying to say is this:

Nope, this prevents overriding CXXFLAGS from the environment.

It does not. I do it all the time.

How does the user portably remove/override the -g and -O0 options? It seems that you are depending on the user's compiler to support a way to subtract from existing options. You are also expecting that the user's compiler supports -O0 and doesn't simply exit.

Bob Friesenhahn

Thomas R. Treadway
Computer Scientist
Lawrence Livermore Nat'l Lab
7000 East Avenue, L-365
Livermore, CA 94550-0611

reply via email to

[Prev in Thread] Current Thread [Next in Thread]