def has_llvm_subproject(self, name):
if name == 'compiler-rt':
- subdir = 'projects/compiler-rt'
+ subdir = '../compiler-rt'
elif name == 'clang':
- subdir = 'tools/clang'
+ subdir = '../clang'
else:
raise ValueError('Unknown subproject: %s' % name)
cwd=None,
check=False,
silent_unless_error=False):
- cmd_str = ' '.join(shlex.quote(s) for s in cmd)
print(
- 'Running `%s` in %s' % (cmd_str, shlex.quote(cwd or os.getcwd())))
+ 'Running `%s` in %s' % (cmd, shlex.quote(cwd or os.getcwd())))
if self.dry_run:
return
else:
output_dir = os.path.abspath(args.out_dir)
- extra_args = {'CMAKE_BUILD_TYPE': 'Release'}
+ extra_args = {'CMAKE_BUILD_TYPE': 'Release',
+ 'LLVM_ENABLE_PROJECTS': 'clang;compiler-rt;lld'}
for arg in args.cmake_extra_arg:
if arg.startswith('-D'):
arg = arg[2:]