Skip to content

Prevent windows platform (GOOS) from attempting to use voidstar_handler#26

Open
herzogp wants to merge 1 commit into
mainfrom
fix-windows-local
Open

Prevent windows platform (GOOS) from attempting to use voidstar_handler#26
herzogp wants to merge 1 commit into
mainfrom
fix-windows-local

Conversation

@herzogp
Copy link
Copy Markdown
Contributor

@herzogp herzogp commented Jun 11, 2024

Restructures internal/emit.go which previously contained implementations for both local_handler and voidstar_handler to separate files, and the voidstar handler is further divided between voidstar_handler.go (for non-windows clients) and voidstar_stub.go (for windows clients). The windows-based split prevents windows clients to avoid using dlopen() dlsym() and dlerror() to determine at runtime if the current process as access to /usr/lib/voidstar.so

This has been tested on linux (still works as intended), but never tested on windows.

@wsx-antithesis
Copy link
Copy Markdown
Contributor

LGTM, 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.

3 participants