mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
build-gem5: --clang
This commit is contained in:
10
common.py
10
common.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user