Skip to content

Commit 1434c45

Browse files
authored
build_llvm.py: Speed up llvm build with multi procs on windows (bytecodealliance#3512)
1 parent 40c41d5 commit 1434c45

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ATTRIBUTIONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ WAMR project reused some components from other open source project:
1818
- **NuttX ELF headers**: used in core/iwasm/aot/debug/elf_parser.c
1919
- **Dhrystone**: for the test benchmakr dhrystone
2020

21-
The WAMR fast interpreter is a clean room development. We would acknowledge the inspirations by [WASM3](https://github.com/wasm3/wasm3) open source project for the approach of pre-calculated oprand stack location.
21+
The WAMR fast interpreter is a clean room development. We would acknowledge the inspirations by [WASM3](https://github.com/wasm3/wasm3) open source project for the approach of pre-calculated operand stack location.
2222

2323
| third party components | version number | latest release | vendor pages | CVE details |
2424
| --- | --- | --- | --- | --- |

build-scripts/build_llvm.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,15 @@ def build_llvm(llvm_dir, platform, backends, projects, use_clang=False, extra_fl
156156
CONFIG_CMD += " -A x64"
157157
else:
158158
CONFIG_CMD += " -G'Ninja'"
159+
print(f"Config command: {CONFIG_CMD}")
159160
subprocess.check_call(shlex.split(CONFIG_CMD), cwd=build_dir)
160161

161162
BUILD_CMD = "cmake --build . --target package" + (
162163
" --config Release" if "windows" == platform else ""
163164
)
165+
if "windows" == platform:
166+
BUILD_CMD += " --parallel " + str(os.cpu_count())
167+
print(f"Build command: {BUILD_CMD}")
164168
subprocess.check_call(shlex.split(BUILD_CMD), cwd=build_dir)
165169

166170
return build_dir

0 commit comments

Comments
 (0)