Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(go/adbc/pkg): export Adbc* symbols on Windows #916

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

lidavidm
Copy link
Member

Fixes #898.

@lidavidm lidavidm requested a review from zeroshade as a code owner July 19, 2023 16:25
// ADBC_EXPORTING is required on Windows, or else the symbols
// won't be accessible to the driver manager

// #cgo CFLAGS: -DADBC_EXPORTING
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we make the ADBC_EXPORTING only get defined on Windows? Or have it defined for all platforms?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a no-op on other platforms. Eventually we can make it work like libarrow if we want, though (where they expand to [[gnu::visibility("default")]]/hidden)

@lidavidm lidavidm added this to the ADBC Libraries 0.6.0 milestone Jul 19, 2023
@lidavidm lidavidm merged commit 1486ae7 into apache:main Jul 19, 2023
64 of 65 checks passed
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.

go/adbc/pkg,python: adbc_driver_manager.AdbcDatabase could not be found when testing python snowflake driver
2 participants