loader: Fix cross-compiling with jwasm
authorChristopher Degawa <ccom@randomderp.com>
Mon, 2 Oct 2023 02:38:28 +0000 (21:38 -0500)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Wed, 4 Oct 2023 17:34:16 +0000 (11:34 -0600)
commitffb46f8f789a7cf34a0c617b83308fa8b74c958a
tree44692eb3c38179a296758f6f4a397bfb0d17c13d
parent0a5fdecfbd2b3de7b0e16a6feb75530a0854c09e
loader: Fix cross-compiling with jwasm

fixes a few issues when cross-compiling from linux to windows using
mingw-w64. Particularly with the result of jwasm not being used in the
library. Additionally, allows running the generated asm_offset binary
with wine, if the user provided the wrapper in their toolchain with
`-DCMAKE_CROSSCOMPILING_EMULATOR=wine`.

Signed-off-by: Christopher Degawa <ccom@randomderp.com>
loader/CMakeLists.txt