Allow users to specify a scons build cache directory.
Review URL: http://codereview.chromium.org/2745014 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4846 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
c3514589b8
commit
add41fe16f
@ -782,6 +782,7 @@ def GetOptions():
|
||||
result = Options()
|
||||
result.Add('mode', 'compilation mode (debug, release)', 'release')
|
||||
result.Add('sample', 'build sample (shell, process, lineprocessor)', '')
|
||||
result.Add('cache', 'directory to use for scons build cache', '')
|
||||
result.Add('env', 'override environment settings (NAME0:value0,NAME1:value1,...)', '')
|
||||
result.Add('importenv', 'import environment settings (NAME0,NAME1,...)', '')
|
||||
for (name, option) in SIMPLE_OPTIONS.iteritems():
|
||||
@ -863,6 +864,8 @@ def VerifyOptions(env):
|
||||
Abort("Shared Object soname not applicable for static library.")
|
||||
if env['os'] != 'win32' and env['pgo'] != 'off':
|
||||
Abort("Profile guided optimization only supported on Windows.")
|
||||
if env['cache'] and not os.path.isdir(env['cache']):
|
||||
Abort("The specified cache directory does not exist.")
|
||||
if not (env['arch'] == 'arm' or env['simulator'] == 'arm') and ('unalignedaccesses' in ARGUMENTS):
|
||||
print env['arch']
|
||||
print env['simulator']
|
||||
@ -1131,6 +1134,8 @@ def Build():
|
||||
else:
|
||||
env.Default('library')
|
||||
|
||||
if env['cache']:
|
||||
CacheDir(env['cache'])
|
||||
|
||||
# We disable deprecation warnings because we need to be able to use
|
||||
# env.Copy without getting warnings for compatibility with older
|
||||
|
Loading…
Reference in New Issue
Block a user