SConstruct (4743:0e355a30d805) SConstruct (4773:6103346eeb28)
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

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

430for root, dirs, files in os.walk('.'):
431 if 'SConsopts' in files:
432 SConscript(os.path.join(root, 'SConsopts'))
433
434all_isa_list.sort()
435all_cpu_list.sort()
436default_cpus.sort()
437
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

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

430for root, dirs, files in os.walk('.'):
431 if 'SConsopts' in files:
432 SConscript(os.path.join(root, 'SConsopts'))
433
434all_isa_list.sort()
435all_cpu_list.sort()
436default_cpus.sort()
437
438def ExtraPathValidator(key, val, env):
439 paths = val.split(':')
440 for path in paths:
441 path = os.path.expanduser(path)
442 if not isdir(path):
443 raise AttributeError, "Invalid path: '%s'" % path
444
438sticky_opts.AddOptions(
439 EnumOption('TARGET_ISA', 'Target ISA', 'alpha', all_isa_list),
440 BoolOption('FULL_SYSTEM', 'Full-system support', False),
441 # There's a bug in scons 0.96.1 that causes ListOptions with list
442 # values (more than one value) not to be able to be restored from
443 # a saved option file. If this causes trouble then upgrade to
444 # scons 0.96.90 or later.
445 ListOption('CPU_MODELS', 'CPU models', default_cpus, all_cpu_list),

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

456 BoolOption('USE_FENV', 'Use <fenv.h> IEEE mode control', have_fenv),
457 BoolOption('USE_CHECKER', 'Use checker for detailed CPU models', False),
458 ('CC', 'C compiler', os.environ.get('CC', env['CC'])),
459 ('CXX', 'C++ compiler', os.environ.get('CXX', env['CXX'])),
460 BoolOption('BATCH', 'Use batch pool for build and tests', False),
461 ('BATCH_CMD', 'Batch pool submission command name', 'qdo'),
462 ('PYTHONHOME',
463 'Override the default PYTHONHOME for this system (use with caution)',
445sticky_opts.AddOptions(
446 EnumOption('TARGET_ISA', 'Target ISA', 'alpha', all_isa_list),
447 BoolOption('FULL_SYSTEM', 'Full-system support', False),
448 # There's a bug in scons 0.96.1 that causes ListOptions with list
449 # values (more than one value) not to be able to be restored from
450 # a saved option file. If this causes trouble then upgrade to
451 # scons 0.96.90 or later.
452 ListOption('CPU_MODELS', 'CPU models', default_cpus, all_cpu_list),

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

463 BoolOption('USE_FENV', 'Use <fenv.h> IEEE mode control', have_fenv),
464 BoolOption('USE_CHECKER', 'Use checker for detailed CPU models', False),
465 ('CC', 'C compiler', os.environ.get('CC', env['CC'])),
466 ('CXX', 'C++ compiler', os.environ.get('CXX', env['CXX'])),
467 BoolOption('BATCH', 'Use batch pool for build and tests', False),
468 ('BATCH_CMD', 'Batch pool submission command name', 'qdo'),
469 ('PYTHONHOME',
470 'Override the default PYTHONHOME for this system (use with caution)',
464 '%s:%s' % (sys.prefix, sys.exec_prefix))
471 '%s:%s' % (sys.prefix, sys.exec_prefix)),
472 ('EXTRAS', 'Add Extra directories to the compilation', '',
473 ExtraPathValidator)
465 )
466
467nonsticky_opts.AddOptions(
468 BoolOption('update_ref', 'Update test reference outputs', False)
469 )
470
471# These options get exported to #defines in config/*.hh (see src/SConscript).
472env.ExportOptions = ['FULL_SYSTEM', 'ALPHA_TLASER', 'USE_FENV', \

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

608#
609###################################################
610
611# rename base env
612base_env = env
613
614for build_path in build_paths:
615 print "Building in", build_path
474 )
475
476nonsticky_opts.AddOptions(
477 BoolOption('update_ref', 'Update test reference outputs', False)
478 )
479
480# These options get exported to #defines in config/*.hh (see src/SConscript).
481env.ExportOptions = ['FULL_SYSTEM', 'ALPHA_TLASER', 'USE_FENV', \

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

617#
618###################################################
619
620# rename base env
621base_env = env
622
623for build_path in build_paths:
624 print "Building in", build_path
625 env['BUILDDIR'] = build_path
626
616 # build_dir is the tail component of build path, and is used to
617 # determine the build parameters (e.g., 'ALPHA_SE')
618 (build_root, build_dir) = os.path.split(build_path)
619 # Make a copy of the build-root environment to use for this config.
620 env = base_env.Copy()
621
622 # Set env options according to the build directory config.
623 sticky_opts.files = []

--- 96 unchanged lines hidden ---
627 # build_dir is the tail component of build path, and is used to
628 # determine the build parameters (e.g., 'ALPHA_SE')
629 (build_root, build_dir) = os.path.split(build_path)
630 # Make a copy of the build-root environment to use for this config.
631 env = base_env.Copy()
632
633 # Set env options according to the build directory config.
634 sticky_opts.files = []

--- 96 unchanged lines hidden ---