这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@AlexanderArvidsson
Copy link
Contributor

@AlexanderArvidsson AlexanderArvidsson commented Dec 28, 2024

This adds support for shared libraries on linux, enabling hot reloading without having to mess with the sokol app state. Hot reloading via static lib causes issues which can only be solved by persisting the internal sokol app state, which isn't available from Odin.
With a shared library, hot reloading works out of the box and makes development super fast.

-fPIC is required when compiling as a shared library.

Let me know if you prefer these to be a separate script (like MacOS).

Corresponding PR in the main sokol repo for the Odin generator:
floooh/sokol#1172

@floooh floooh merged commit d65d1c9 into floooh:main Dec 29, 2024
3 checks passed
@floooh
Copy link
Owner

floooh commented Dec 29, 2024

Looks good, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants