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

SNOW-1524259: Add option to build libsnowflakeclient as dynamic library #782

Open
wants to merge 36 commits into
base: master
Choose a base branch
from

Conversation

sfc-gh-ext-simba-jl
Copy link
Collaborator

@sfc-gh-ext-simba-jl sfc-gh-ext-simba-jl commented Nov 26, 2024

teamwork issue 1033
Add support for building libsnowflakeclient as a dynamic linking library.

@sfc-gh-ext-simba-jl sfc-gh-ext-simba-jl force-pushed the SNOW-1524259-dynamic-library branch from f7fcd62 to e95c698 Compare December 2, 2024 22:58
@sfc-gh-ext-simba-jl sfc-gh-ext-simba-jl force-pushed the SNOW-1524259-dynamic-library branch from 0f57b57 to e95c698 Compare December 11, 2024 01:02
@sfc-gh-ext-simba-jl sfc-gh-ext-simba-jl marked this pull request as ready for review January 28, 2025 21:17
@sfc-gh-ext-simba-jl sfc-gh-ext-simba-jl requested a review from a team as a code owner January 28, 2025 21:17
@sfc-gh-dprzybysz sfc-gh-dprzybysz changed the title SNOW-1524259: Reduce dependencies size in libsnowflakeclient SNOW-1524259: Add option to build libsnowflakeclient as dynamic library Jan 29, 2025
sf_get_tmp_dir @74
sf_calloc @75
sf_free @76
uuid4_generate @77
Copy link
Collaborator

Choose a reason for hiding this comment

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

we will need to update the exports whenever the public api is changed or we can make it dynamically created?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The exports are currently manually created (same as the ODBC driver) as we don't want to expose internal functions. There are tools that can generate the exports file but I'm not sure if they can build. I'll test it out and get back to you.

../deps-build/${PLATFORM}/${VSDIR}/${CMAKE_BUILD_TYPE}/cmocka/include
)
set_target_properties(
${T} PROPERTIES LINK_FLAGS "/ignore:4099")
Copy link
Collaborator

Choose a reason for hiding this comment

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

why do we need this ignore?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed. It's not needed here.

tests/test_get_query_result_response.c Show resolved Hide resolved
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.

4 participants