diff options
| author | Alexander Arvidsson <2972103+AlexanderArvidsson@users.noreply.github.com> | 2025-01-05 09:54:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-05 09:54:33 +0100 |
| commit | 3cb0ddb539e0bd8c0f4abf5621a32ebe5d3fa63d (patch) | |
| tree | c9ee5b7818097ad23e9106829861b674c72b92c8 /bindgen | |
| parent | 543bd5021dc56793d2a2f1689dfdbe6eadf05d86 (diff) | |
| parent | c1cc713a48669fb78c8fadc1a3cb9dd6c3bb97d3 (diff) | |
Merge branch 'floooh:master' into feature/bindgen-docs
Diffstat (limited to 'bindgen')
| -rw-r--r-- | bindgen/gen_odin.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bindgen/gen_odin.py b/bindgen/gen_odin.py index 8b2b7798..f66dcebb 100644 --- a/bindgen/gen_odin.py +++ b/bindgen/gen_odin.py @@ -403,8 +403,13 @@ def gen_c_imports(inp, c_prefix, prefix): l( ' }') l( ' }') l( '} else when ODIN_OS == .Linux {') - l(f' when DEBUG {{ foreign import {clib_import} {{ "{clib_prefix}_linux_x64_gl_debug.a"{linux_gl_libs} }} }}') - l(f' else {{ foreign import {clib_import} {{ "{clib_prefix}_linux_x64_gl_release.a"{linux_gl_libs} }} }}') + l( ' when USE_DLL {') + l(f' when DEBUG {{ foreign import {clib_import} {{ "{clib_prefix}_linux_x64_gl_debug.so"{linux_gl_libs} }} }}') + l(f' else {{ foreign import {clib_import} {{ "{clib_prefix}_linux_x64_gl_release.so"{linux_gl_libs} }} }}') + l( ' } else {') + l(f' when DEBUG {{ foreign import {clib_import} {{ "{clib_prefix}_linux_x64_gl_debug.a"{linux_gl_libs} }} }}') + l(f' else {{ foreign import {clib_import} {{ "{clib_prefix}_linux_x64_gl_release.a"{linux_gl_libs} }} }}') + l( ' }') l( '} else {') l( ' #panic("This OS is currently not supported")') l( '}') |