build-gem5: --clang

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-01-25 00:00:03 +00:00
parent 7b99c45ac2
commit 72cd8f580d
3 changed files with 31 additions and 1 deletions

View File

@@ -158,6 +158,14 @@ CPU architecture to use. If given multiple times, run the action
for each arch sequentially in that order. If one of them fails, stop running.
Valid archs: {}
'''.format(arches_string)
)
self.add_argument(
'--clang',
default=False,
help='''\
Build with clang as much as possible. Set the build-id to clang by default unless
one is given explicitly. Currently supported components: gem5.
'''
)
self.add_argument(
'--dry-run',
@@ -437,6 +445,8 @@ Valid emulators: {}
if not env['_args_given']['gem5_build_id']:
if env['_args_given']['gem5_worktree']:
env['gem5_build_id'] = env['gem5_worktree']
elif env['_args_given']['clang']:
env['gem5_build_id'] = 'clang'
else:
env['gem5_build_id'] = consts['default_build_id']
env['is_arm'] = False