a-game

2D platformer written from scratch.
git clone git://git.amin.space/a-game.git
Log | Files | Refs | README | LICENSE

commit 5b9156543a679ec0cd75a58ba96bd15ab6a5093a
parent 55ffcf3f544c934572873406d9e11a2ed0745318
Author: amin <dev@aminmesbah.com>
Date:   Mon, 10 Feb 2020 09:46:53 +0000

Fix broken wasm build again

Probably caused by recent upgradet to LLVM 9.0.1

FossilOrigin-Name: ecfd8f36bfb6de32a334d135b699415759a739a0acbba1d06f4e5199fd6a7a11
Diffstat:
Mbuild_wasm.sh | 1-
Msrc/game.h | 3+++
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/build_wasm.sh b/build_wasm.sh @@ -26,7 +26,6 @@ clang \ -internal-isystem /usr/lib/clang/$clang_version/include \ -internal-externc-isystem /usr/include \ -DPLATFORM_WASM \ - -DGAME_WEBGL \ -o $wasm_dir/wasm.bc \ src/platform_wasm.c diff --git a/src/game.h b/src/game.h @@ -69,6 +69,9 @@ void *memmove(void *dst, const void *src, size_t n) return memcpy(dst, src, n); } +static_assert(__has_builtin(__builtin_sqrtf), "No builtin sqrtf builtin"); +#define sqrtf(x) __builtin_sqrtf((x)) + #endif // PLATFORM_WASM #if defined(PLATFORM_WASM)