Changeset 534

Show
Ignore:
Timestamp:
08/21/07 07:54:40 (14 years ago)
Author:
arnonym
Message:

Cache the built files.

And add "-O2" to the gcc-options if not in debug mode...

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/libffado-scons_porting_work/SConstruct

    r531 r534  
    88if not os.path.isdir( "cache" ): 
    99        os.mkdir( "cache" ) 
     10        os.mkdir( "cache/objects" ) 
    1011 
    1112opts = Options( "cache/options.cache" ) 
     
    4344opts.Save( "cache/options.cache", env ) 
    4445 
     46CacheDir( 'cache/objects' ) 
     47 
    4548if not env.GetOption('clean'): 
    4649        conf = Configure( env, custom_tests={ 'CheckForPKGConfig' : CheckForPKGConfig, 'CheckForPKG' : CheckForPKG }, conf_dir='cache', log_file='cache/config.log' ) 
     
    7376        # -Werror could be added to, which would force the devs to really remove all the warnings :-) 
    7477        env.AppendUnique( CCFLAGS=["-DDEBUG","-Wall","-g"] ) 
     78else: 
     79        env.AppendUnique( CCFLAGS=["-O2"] ) 
    7580 
    7681