mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
Clean up box2d foreign import
This commit is contained in:
Vendored
+2
-10
@@ -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\"`")
|
#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 {
|
foreign import lib {
|
||||||
when VECTOR_EXT == "_simd" {
|
LIB_PATH,
|
||||||
foreign import lib "lib/box2d_wasm_simd.o"
|
|
||||||
} else {
|
|
||||||
foreign import lib "lib/box2d_wasm.o"
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
foreign import lib {
|
|
||||||
LIB_PATH,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user