aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-08-14 11:01:54 +0100
committergingerBill <bill@gingerbill.org>2024-08-14 11:01:54 +0100
commit651122e9dbd87e1bb1410066ebc108bea1068c72 (patch)
treec4b419d700e7f119adae0f8e897f41053457e498
parentd1e114742ef7f300042b8b88ee7f2cd7ded5b5f0 (diff)
Fix foreign import paths
-rw-r--r--vendor/box2d/box2d.odin6
1 files changed, 4 insertions, 2 deletions
diff --git a/vendor/box2d/box2d.odin b/vendor/box2d/box2d.odin
index 708ee5165..a4580564d 100644
--- a/vendor/box2d/box2d.odin
+++ b/vendor/box2d/box2d.odin
@@ -7,10 +7,12 @@ import "core:c"
when ODIN_OS == .Windows {
@(private) LIB_PATH :: "lib/box2d_windows_amd64_" + VECTOR_EXT + ".lib"
+} else when ODIN_OS == .Darwin && ODIN_ARCH == .arm64 {
+ @(private) LIB_PATH :: "lib/box2d_darwin_arm64.a"
} else when ODIN_OS == .Darwin {
- @(private) LIB_PATH :: ("lib/box2d_darwin_amd64_" + VECTOR_EXT + ".a") when ODIN_ARCH == .amd64 else "lib/box2d_darwin_arm64.a"
+ @(private) LIB_PATH :: "lib/box2d_darwin_amd64_" + VECTOR_EXT + ".a"
} else when ODIN_ARCH == .amd64 {
- @(private) LIB_PATH :: "lib/box2d_other_" + VECTOR_EXT + ".a"
+ @(private) LIB_PATH :: "lib/box2d_other_amd64_" + VECTOR_EXT + ".a"
} else {
@(private) LIB_PATH :: "lib/box2d_other.a"
}