SConstruct (9396:0c0ec9d87746) SConstruct (9416:4bf9aa9d40bb)
1# -*- mode:python -*-
2
3# Copyright (c) 2011 Advanced Micro Devices, Inc.
4# Copyright (c) 2009 The Hewlett-Packard Development Company
5# Copyright (c) 2004-2005 The Regents of The University of Michigan
6# All rights reserved.
7#
8# Redistribution and use in source and binary forms, with or without

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

178#
179# Set up the main build environment.
180#
181########################################################################
182use_vars = set([ 'AS', 'AR', 'CC', 'CXX', 'HOME', 'LD_LIBRARY_PATH',
183 'LIBRARY_PATH', 'PATH', 'PKG_CONFIG_PATH', 'PYTHONPATH',
184 'RANLIB', 'SWIG' ])
185
1# -*- mode:python -*-
2
3# Copyright (c) 2011 Advanced Micro Devices, Inc.
4# Copyright (c) 2009 The Hewlett-Packard Development Company
5# Copyright (c) 2004-2005 The Regents of The University of Michigan
6# All rights reserved.
7#
8# Redistribution and use in source and binary forms, with or without

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

178#
179# Set up the main build environment.
180#
181########################################################################
182use_vars = set([ 'AS', 'AR', 'CC', 'CXX', 'HOME', 'LD_LIBRARY_PATH',
183 'LIBRARY_PATH', 'PATH', 'PKG_CONFIG_PATH', 'PYTHONPATH',
184 'RANLIB', 'SWIG' ])
185
186use_prefixes = [
187 "M5", # M5 configuration (e.g., path to kernels)
188 "DISTCC_", # distcc (distributed compiler wrapper) configuration
189 "CCACHE_", # ccache (caching compiler wrapper) configuration
190 "CCC_", # clang static analyzer configuration
191 ]
192
186use_env = {}
187for key,val in os.environ.iteritems():
193use_env = {}
194for key,val in os.environ.iteritems():
188 if key in use_vars or key.startswith("M5"):
195 if key in use_vars or \
196 any([key.startswith(prefix) for prefix in use_prefixes]):
189 use_env[key] = val
190
191main = Environment(ENV=use_env)
192main.Decider('MD5-timestamp')
193main.root = Dir(".") # The current directory (where this file lives).
194main.srcdir = Dir("src") # The source directory
195
196main_dict_keys = main.Dictionary().keys()

--- 981 unchanged lines hidden ---
197 use_env[key] = val
198
199main = Environment(ENV=use_env)
200main.Decider('MD5-timestamp')
201main.root = Dir(".") # The current directory (where this file lives).
202main.srcdir = Dir("src") # The source directory
203
204main_dict_keys = main.Dictionary().keys()

--- 981 unchanged lines hidden ---