diff options
| author | Andre Weissflog <floooh@gmail.com> | 2022-07-19 21:35:22 +0200 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2022-07-19 21:35:22 +0200 |
| commit | 7b7c2a135560787421f62c36ede8ec92fd82c765 (patch) | |
| tree | 49b4cad73e829a8928516c57ecf022729d1e9525 /bindgen | |
| parent | fc7949218b13e0f5e375ee3de4f1d7fd1c70db53 (diff) | |
gen_odin.py: fix .a vs .lib c-library imports
Diffstat (limited to 'bindgen')
| -rw-r--r-- | bindgen/gen_odin.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bindgen/gen_odin.py b/bindgen/gen_odin.py index fce16675..91d653af 100644 --- a/bindgen/gen_odin.py +++ b/bindgen/gen_odin.py @@ -335,11 +335,11 @@ def gen_c_imports(inp): l('}') l('else when ODIN_OS == .Darwin {') l(' when ODIN_ARCH == .arm64 {') - l(f' when ODIN_DEBUG == true {{ foreign import {clib_import} "{clib_prefix}_macos_arm64_metal_debug.lib" }}') - l(f' else {{ foreign import {clib_import} "{clib_prefix}_macos_arm64_metal_release.lib" }}') + l(f' when ODIN_DEBUG == true {{ foreign import {clib_import} "{clib_prefix}_macos_arm64_metal_debug.a" }}') + l(f' else {{ foreign import {clib_import} "{clib_prefix}_macos_arm64_metal_release.a" }}') l(' } else {') - l(f' when ODIN_DEBUG == true {{ foreign import {clib_import} "{clib_prefix}_macos_x64_metal_debug.lib" }}') - l(f' else {{ foreign import {clib_import} "{clib_prefix}_macos_x64_metal_release.lib" }}') + l(f' when ODIN_DEBUG == true {{ foreign import {clib_import} "{clib_prefix}_macos_x64_metal_debug.a" }}') + l(f' else {{ foreign import {clib_import} "{clib_prefix}_macos_x64_metal_release.a" }}') l(' }') l('}') l('else {') |