Changeset 935

Show
Ignore:
Timestamp:
03/12/08 02:52:06 (16 years ago)
Author:
ppalmers
Message:

preliminary SSE3 detection in SConstruct

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/SConstruct

    r903 r935  
    316316    build_host_supports_sse = 0 
    317317    build_host_supports_sse2 = 0 
     318    build_host_supports_sse3 = 0 
    318319 
    319320    if config[config_kernel] == 'linux' : 
     
    330331            if "sse2" in x86_flags: 
    331332                build_host_supports_sse2 = 1 
     333            #if "sse3" in x86_flags: 
     334                #build_host_supports_sse3 = 1 
    332335            if "3dnow" in x86_flags: 
    333336                opt_flags.append ("-m3dnow") 
     
    337340            elif config[config_cpu] == "i686": 
    338341                opt_flags.append ("-march=i686") 
    339      
     342 
    340343    if ((env['DIST_TARGET'] == 'i686') or (env['DIST_TARGET'] == 'x86_64')) \ 
    341344       and build_host_supports_sse and env['ENABLE_OPTIMIZATIONS']: 
     
    347350        opt_flags.extend (["-msse2"]) 
    348351        env['USE_SSE2'] = 1 
     352 
     353    #if ((env['DIST_TARGET'] == 'i686') or (env['DIST_TARGET'] == 'x86_64')) \ 
     354       #and build_host_supports_sse2 and env['ENABLE_OPTIMIZATIONS']: 
     355        #opt_flags.extend (["-msse3"]) 
     356        #env['USE_SSE3'] = 1 
    349357 
    350358# end of processor-specific section