You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 3. Build C++ to WASM (30-45 minutes - NEVER CANCEL)
@@ -34,7 +34,7 @@ npm run build-cpp
34
34
# 4. Build TypeScript packages (5-10 minutes)
35
35
npm run build-ws
36
36
37
-
# 5. Full build command (45+ minutes total - NEVER CANCEL)
37
+
# 5. Full build command equivalent to build-cpp + build-ws (45+ minutes total - NEVER CANCEL)
38
38
# Equivalent to: build-cpp && build-ws
39
39
npm run build
40
40
```
@@ -49,6 +49,20 @@ From actual runs in clean environment:
49
49
-`npm run build-cpp`: 30-60 minutes (C++ compilation to WASM)
50
50
-`npm run test`: 15-30 minutes (includes browser and node tests)
51
51
52
+
## CMake / C++ (WASM) Build
53
+
54
+
Prefer the npm scripts. They source `./emsdk/emsdk_env.sh` and use the repo's CMake preset(s):
55
+
56
+
```bash
57
+
npm run build-cpp
58
+
```
59
+
60
+
For fast iteration:
61
+
62
+
```bash
63
+
npm run build-cpp-watch
64
+
```
65
+
52
66
### Quick Development (TypeScript Only)
53
67
```bash
54
68
# For TypeScript-only changes when WASM files exist
@@ -57,32 +71,15 @@ npm run build-ws # 5-10 minutes
57
71
npm run lint # 2-3 minutes
58
72
```
59
73
60
-
## CMake Configuration
61
-
62
-
### **CRITICAL**: ALWAYS Use VS Code CMake Extension
63
-
64
-
**YOU MUST use the VS Code CMake extension for ALL CMake operations.** Manual cmake commands will fail because they don't properly set up the Emscripten environment.
74
+
### Manual CMake (only when needed)
65
75
66
-
**REQUIRED WORKFLOW** when modifying C++ code or vcpkg packages (patches, portfile.cmake):
76
+
Manual CMake is supported, but you must source Emscripten first:
0 commit comments