a-game

2D platformer written from scratch.
Log | Files | Refs | README | LICENSE

commit 75b5013e1be37fe7d6ba4b836b5af3ff0103b51f
parent fc617dd7277c908561d1dda09a3dce863dabad8c
Author: Amin Mesbah <dev@aminmesbah.com>
Date:   Mon,  3 Feb 2020 01:42:11 -0800

Fix broken wasm build

Diffstat:
Mbuild_wasm.sh | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/build_wasm.sh b/build_wasm.sh @@ -14,6 +14,7 @@ cp src/platform_wasm_index.html $wasm_dir/index.html cp -r shader/ $wasm_dir cp -r assets/ $wasm_dir +clang_version=$(clang -v 2>&1 | head -1 | cut -d " " -f 3) clang \ -cc1 \ -Ofast \ @@ -22,7 +23,7 @@ clang \ -ffreestanding \ -fno-builtin \ -std=c11 \ - -internal-isystem /usr/lib/clang/9.0.0/include \ + -internal-isystem /usr/lib/clang/$clang_version/include \ -internal-externc-isystem /usr/include \ -DGAME_WEBGL \ -o $wasm_dir/wasm.bc \