SConstruct (10458:64809024b924) SConstruct (10584:babb40bd2fc6)
1# -*- mode:python -*-
2
3# Copyright (c) 2013 ARM Limited
4# All rights reserved.
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

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

211use_prefixes = [
212 "M5", # M5 configuration (e.g., path to kernels)
213 "DISTCC_", # distcc (distributed compiler wrapper) configuration
214 "CCACHE_", # ccache (caching compiler wrapper) configuration
215 "CCC_", # clang static analyzer configuration
216 ]
217
218use_env = {}
1# -*- mode:python -*-
2
3# Copyright (c) 2013 ARM Limited
4# All rights reserved.
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

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

211use_prefixes = [
212 "M5", # M5 configuration (e.g., path to kernels)
213 "DISTCC_", # distcc (distributed compiler wrapper) configuration
214 "CCACHE_", # ccache (caching compiler wrapper) configuration
215 "CCC_", # clang static analyzer configuration
216 ]
217
218use_env = {}
219for key,val in os.environ.iteritems():
219for key,val in sorted(os.environ.iteritems()):
220 if key in use_vars or \
221 any([key.startswith(prefix) for prefix in use_prefixes]):
222 use_env[key] = val
223
224main = Environment(ENV=use_env)
225main.Decider('MD5-timestamp')
226main.root = Dir(".") # The current directory (where this file lives).
227main.srcdir = Dir("src") # The source directory

--- 1181 unchanged lines hidden ---
220 if key in use_vars or \
221 any([key.startswith(prefix) for prefix in use_prefixes]):
222 use_env[key] = val
223
224main = Environment(ENV=use_env)
225main.Decider('MD5-timestamp')
226main.root = Dir(".") # The current directory (where this file lives).
227main.srcdir = Dir("src") # The source directory

--- 1181 unchanged lines hidden ---