Fix args ordering in LLVM build from previous commit (#1179)

This commit is contained in:
juj
2023-01-28 15:58:49 +02:00
committed by GitHub
parent fa5f5f374f
commit 592b7b74e4

View File

@@ -1070,7 +1070,8 @@ def build_llvm(tool):
targets_to_build = 'WebAssembly;AArch64' targets_to_build = 'WebAssembly;AArch64'
else: else:
targets_to_build = 'WebAssembly' targets_to_build = 'WebAssembly'
args = ['-DLLVM_TARGETS_TO_BUILD=' + targets_to_build, cmake_generator, args = get_generator_and_config_args(tool)
args += ['-DLLVM_TARGETS_TO_BUILD=' + targets_to_build,
'-DLLVM_INCLUDE_EXAMPLES=OFF', '-DLLVM_INCLUDE_EXAMPLES=OFF',
'-DLLVM_INCLUDE_TESTS=' + tests_arg, '-DLLVM_INCLUDE_TESTS=' + tests_arg,
'-DCLANG_INCLUDE_TESTS=' + tests_arg, '-DCLANG_INCLUDE_TESTS=' + tests_arg,
@@ -1086,7 +1087,6 @@ def build_llvm(tool):
# (there instead of $(Configuration), one would need ${CMAKE_BUILD_TYPE} ?) # (there instead of $(Configuration), one would need ${CMAKE_BUILD_TYPE} ?)
# It looks like compiler-rt is not compatible to build on Windows? # It looks like compiler-rt is not compatible to build on Windows?
args += ['-DLLVM_ENABLE_PROJECTS=clang;lld'] args += ['-DLLVM_ENABLE_PROJECTS=clang;lld']
cmake_generator, args = get_generator_and_config_args(tool)
if os.getenv('LLVM_CMAKE_ARGS'): if os.getenv('LLVM_CMAKE_ARGS'):
extra_args = os.environ['LLVM_CMAKE_ARGS'].split(',') extra_args = os.environ['LLVM_CMAKE_ARGS'].split(',')