Hi,

On Dec 19, 2014, at 14:24, Barry Kauler <[email protected]> wrote:

> On 12/19/14, René Rebe <[email protected]> wrote:
>>> 
>>> It seems that T2 is putting in that "-O"?
>>> How can I tell it not to?
>> 
>> 
>> It sounds more like T2 is removing -O… What is your optimization setting in
>> the T2 Config (none, speed, size?)? T2 filters all compiler invocations to
>> normalize such settings and insert exactly what is chosen in the T2 Config,
>> 
> 
> export SDECFG_OPT='size'
> 
> Yes, I have already tried that. There is -Os inserted in various
> makefiles, or what cmake uses as makefiles, and I filtered them out
> with a premake hook in the hardinfo.conf file.
> Made no difference.

If you manually edit the makefiles it should not make any difference - because
T2 is doing the gcc filtering transparently on the gcc executable execution
by wrapping the compiler with a T2 script.

> ...at least, I thought that I got them all out. The benchmark section anyway.
> 
> Is there any way of overriding the 'size' setting for just one
> package, replace with 'none'?
> 
> Though, only really want to disable the 'size' thing for the compiling
> of the benchmark components of hardinfo.


I would more think the “benchmark” wants -O2 or so (instead of the T2 global
-O2 due == “size”)?

You can try something like:

var_append GCC_WRAPPER_APPEND ‘ ‘ ‘-O2’

or disable the wrapper altogether for this package:

GCC_WRAPPER_BYPASS=1

(—typos)

        René

-- 
 ExactCODE GmbH, Lietzenburger Str. 42, DE-10789 Berlin
 http://exactcode.com | http://exactscan.com | http://ocrkit.com | 
http://t2-project.org | http://rene.rebe.de

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2

Reply via email to