SConstruct
branchpyrit
changeset 85 907a634e5c02
parent 84 6f7fe14782c2
child 88 f7edb3b90816
equal deleted inserted replaced
84:6f7fe14782c2 85:907a634e5c02
    89 
    89 
    90 def CheckCPUFlags(context):
    90 def CheckCPUFlags(context):
    91 	global cpu, cpuflags_gcc, cpuflags_intelc
    91 	global cpu, cpuflags_gcc, cpuflags_intelc
    92 	context.Message('Checking CPU arch and flags... ')
    92 	context.Message('Checking CPU arch and flags... ')
    93 	env.Execute('@$CC tools/cpuflags.c -o tools/cpuflags')
    93 	env.Execute('@$CC tools/cpuflags.c -o tools/cpuflags')
    94 	(cpu, cpuflags_gcc, cpuflags_intelc) = os.popen('tools/cpuflags %s %s'
    94 	(cpu, cpuflags_gcc, cpuflags_intelc) = os.popen('tools'+os.sep+'cpuflags %s %s'
    95 		% (''.join(gccversion.rsplit('.',1)), intelcversion) ).read().split('\n')[:3]
    95 		% (''.join(gccversion.rsplit('.',1)), intelcversion) ).read().split('\n')[:3]
    96 	context.Result(cpu)
    96 	context.Result(cpu)
    97 	return True
    97 	return True
    98 
    98 
    99 conf = Configure(env,
    99 conf = Configure(env,