7 lines
378 B
Bash
Executable File
7 lines
378 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -xeu
|
|
|
|
clang --target=wasm32 -s -O3 -flto=full -fno-trapping-math -funroll-loops -ffast-math -fno-math-errno -fomit-frame-pointer -fstrict-aliasing -fvisibility-inlines-hidden -fvisibility=hidden -std=c99 -Werror -Wpedantic -pedantic-errors -pedantic -nostdlib -Wl,--no-entry -Wl,--export=pow_init -Wl,--export=pow_solve_batch -o pow.wasm pow.c
|
|
chmod 600 pow.wasm
|