Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebAssemblyビルドの調整 #236

Merged
merged 2 commits into from
May 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions script/wasm_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ async function runRepl(yaneuraou) {
}

async function main(argv) {
const yaneuraou = await YaneuraOu();
const wasmBinary = await fs.promises.readFile(path.join(__dirname, "./lib/yaneuraou.${pkgobj.name}.wasm"));
const yaneuraou = await YaneuraOu({ wasmBinary });
const FS = yaneuraou.FS;
if (USI_BOOK_FILE) {
const buffer = await fs.promises.readFile(USI_BOOK_FILE);
Expand Down Expand Up @@ -203,7 +204,8 @@ async function runRepl(yaneuraou: YaneuraOuModule) {
}

async function main(argv: string[]) {
const yaneuraou: YaneuraOuModule = await YaneuraOu();
const wasmBinary = await fs.promises.readFile(path.join(__dirname, "./lib/yaneuraou.${pkgobj.name}.wasm"));
const yaneuraou: YaneuraOuModule = await YaneuraOu({ wasmBinary });
const FS = yaneuraou.FS;
if (USI_BOOK_FILE) {
const buffer = await fs.promises.readFile(USI_BOOK_FILE);
Expand Down
2 changes: 1 addition & 1 deletion source/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ else
LDFLAGS += -s ALLOW_MEMORY_GROWTH=1 -s INITIAL_MEMORY=$(EM_INITIAL_MEMORY_SIZE) -s MAXIMUM_MEMORY=4294967296
LDFLAGS += -s TOTAL_STACK=67108864
LDFLAGS += -s LLD_REPORT_UNDEFINED
LDFLAGS += -s PROXY_TO_PTHREAD
# LDFLAGS += -s PROXY_TO_PTHREAD
# LDFLAGS += -s ALLOW_UNIMPLEMENTED_SYSCALLS
# LDFLAGS += -s ASSERTIONS
LDFLAGS += -s --closure 1
Expand Down