We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffb7116 commit 8ef0cecCopy full SHA for 8ef0cec
tools/build/build-llvm-tools
@@ -63,10 +63,13 @@ class BuildLLVMTools:
63
cmake_options = []
64
if 'wasm-ld' in self.tools:
65
cmake_options.append('-DLLVM_ENABLE_PROJECTS=lld')
66
+ clang_bin_dir = self.toolchain_path / 'usr' / 'bin'
67
subprocess.check_call([
68
'cmake',
69
'-G', 'Ninja',
70
'-DCMAKE_BUILD_TYPE=Release',
71
+ '-DCMAKE_C_COMPILER=' + str(clang_bin_dir / 'clang'),
72
+ '-DCMAKE_CXX_COMPILER=' + str(clang_bin_dir / 'clang++'),
73
'-DLLVM_TARGETS_TO_BUILD=WebAssembly',
74
'-DCMAKE_INSTALL_PREFIX=' + str(self.toolchain_path),
75
'-DLLVM_TOOLCHAIN_TOOLS=' + ';'.join(self.tools),
0 commit comments