Skip to content

Commit

Permalink
upgrade toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
guyutongxue committed May 7, 2024
1 parent 1fc6987 commit 2b6a05a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

## Note: Better to make sure WASI SDK version matches the LLVM version
EMSDK_VER=3.1.52
WASI_SDK_VER=21.0
WASI_SDK_VER_MAJOR=21
LLVM_VER=17.0.6
LLVM_VER_MAJOR=17
WASI_SDK_VER=22.0
WASI_SDK_VER_MAJOR=22
LLVM_VER=18.1.2
LLVM_VER_MAJOR=18

WORKSPACE_DIR=$PWD
ROOT_DIR=$(mktemp -d)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
"monaco-editor": "$monaco-editor",
"vscode": "$vscode"
},
"packageManager": "pnpm@9.0.6"
"packageManager": "pnpm@9.1.0"
}
6 changes: 4 additions & 2 deletions src/main.worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,11 @@ console.log(clangd);

const flags = [
...COMPILE_ARGS,
// "--target=wasm32-wasi",
"--target=wasm32-wasi",
"-isystem/usr/include/c++/v1",
"-isystem/usr/include/",
"-isystem/usr/include/wasm32-wasi/c++/v1",
"-isystem/usr/include",
"-isystem/usr/include/wasm32-wasi",
];

clangd.FS.writeFile(FILE_PATH, "");
Expand Down

0 comments on commit 2b6a05a

Please sign in to comment.