SConscript (6658:f4de76601762) SConscript (6669:2a69e47a335c)
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 397 unchanged lines hidden (view full) ---

406 code("""
407import m5.internal
408import m5.util
409
410buildEnv = m5.util.SmartDict($build_env)
411hgRev = '$hg_info'
412
413compileDate = m5.internal.core.compileDate
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 397 unchanged lines hidden (view full) ---

406 code("""
407import m5.internal
408import m5.util
409
410buildEnv = m5.util.SmartDict($build_env)
411hgRev = '$hg_info'
412
413compileDate = m5.internal.core.compileDate
414for k,v in m5.internal.core.__dict__.iteritems():
415 if k.startswith('flag_'):
416 setattr(buildEnv, k[5:], v)
414_globals = globals()
415for key,val in m5.internal.core.__dict__.iteritems():
416 if key.startswith('flag_'):
417 flag = key[5:]
418 _globals[flag] = val
419del _globals
417""")
418 code.write(str(target[0]))
419
420defines_info = [ Value(build_env), Value(env['HG_INFO']) ]
421# Generate a file with all of the compile options in it
422env.Command('python/m5/defines.py', defines_info, makeDefinesPyFile)
423PySource('m5', 'python/m5/defines.py')
424

--- 675 unchanged lines hidden ---
420""")
421 code.write(str(target[0]))
422
423defines_info = [ Value(build_env), Value(env['HG_INFO']) ]
424# Generate a file with all of the compile options in it
425env.Command('python/m5/defines.py', defines_info, makeDefinesPyFile)
426PySource('m5', 'python/m5/defines.py')
427

--- 675 unchanged lines hidden ---