Defaut value of optimize option of scons ?

Asked by Jérôme Duriez

Hello,

with scons -h I see on my PC that the default value of this option is "-1" :

optimize: Turn on optimizations (-1, 0 or 1); negative value sets optimization based on debugging: not optimize with debugging and vice versa.
    default: -1

Whereas, from what I understand from https://www.yade-dem.org/doc/prog.html#pre-build-configuration, it is "True (1)".

Which is the truth ? The first one ?

I take opportunity of this question to say that I did not find the explaining message of this option given by scons -h so helpful, especially to understand the three different possible values ? But I can not be sure it is not my fault...

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
Last query:
Last reply:
Revision history for this message
Best Jan Stránský (honzik) said :
#1

Hi Jerome

according to YADEDIR/SConstruct script, line 93, the default value is -1.
You can also change the help description in the same file at the same line
to be more helpful.

Jan

2011/8/24 jduriez <email address hidden>

> New question #169042 on Yade:
> https://answers.launchpad.net/yade/+question/169042
>
> Hello,
>
> with scons -h I see on my PC that the default value of this option is "-1"
> :
>
> optimize: Turn on optimizations (-1, 0 or 1); negative value sets
> optimization based on debugging: not optimize with debugging and vice versa.
> default: -1
>
> Whereas, from what I understand from
> https://www.yade-dem.org/doc/prog.html#pre-build-configuration, it is
> "True (1)".
>
> Which is the truth ? The first one ?
>
> I take opportunity of this question to say that I did not find the
> explaining message of this option given by scons -h so helpful, especially
> to understand the three different possible values ? But I can not be sure it
> is not my fault...
>
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Jérôme Duriez (jduriez) said :
#2

Thanks,

I proposed something in r2906.

Revision history for this message
Jérôme Duriez (jduriez) said :
#3

Thanks honzik, that solved my question.