Clean up box2d foreign import

This commit is contained in:
gingerBill
2025-01-01 15:13:07 +00:00
parent c8ad2a4245
commit 049359cae4
+2 -10
View File
@@ -27,16 +27,8 @@ when !#exists(LIB_PATH) {
#panic("Could not find the compiled box2d libraries at \"" + LIB_PATH + "\", they can be compiled by running the `build.sh` script at `" + ODIN_ROOT + "vendor/box2d/build_box2d.sh\"`")
}
when ODIN_ARCH == .wasm32 || ODIN_ARCH == .wasm64p32 {
when VECTOR_EXT == "_simd" {
foreign import lib "lib/box2d_wasm_simd.o"
} else {
foreign import lib "lib/box2d_wasm.o"
}
} else {
foreign import lib {
LIB_PATH,
}
foreign import lib {
LIB_PATH,
}