feat(c,ci,go): add vcpkg-based build + ci, fix go imports#3591
feat(c,ci,go): add vcpkg-based build + ci, fix go imports#3591amoeba wants to merge 14 commits intoapache:mainfrom
Conversation
Co-Authored-By: Alamiri, Ali <Ali.Alamiri@sage.com>
|
Here's my local test output for adbc-driver-manager-test: adbc-driver-manager-test |
| endif() | ||
|
|
||
| # On Windows, install sqlite3.dll alongside the driver | ||
| if(WIN32 AND CMAKE_VERSION VERSION_GREATER_EQUAL "3.21") |
There was a problem hiding this comment.
Why does this need a cmake version check?
There was a problem hiding this comment.
This whole block was mainly to copy runtime deps, I came up with using RUNTIME_DEPENDENCY_SET like this with LLM help and RUNTIME_DEPENDENCY_SET is 3.21, see https://cmake.org/cmake/help/latest/command/install.html. I tried something similar before this and didn't get something working.
There was a problem hiding this comment.
There's probably a much better way to do this, I can keep working on this part.
There was a problem hiding this comment.
I guess then the problem is it won't work on older CMake!
Our minimum is 3.18 right now but maybe we can bump it up?
There was a problem hiding this comment.
Yeah I'll try to come up with something simpler in this PR. It boils down to copying one DLL in the case of sqlite and three in the case of postgresql.
| list(APPEND GO_ENV_VARS "GOARCH=arm64") | ||
| endif() | ||
|
|
||
| add_custom_command(OUTPUT "${LIBOUT_SHARED}.${ADBC_FULL_SO_VERSION}" |
There was a problem hiding this comment.
Reviewer note: The rest of this file I used a combination of Claude Code and the previous PR and comments therein to come up with something that worked. I want to go back over this tomorrow with fresh eyes but I thought I'd point it out in case it helps review.
I started adding a vcpkg preset for Windows and then saw #2858 which was most of the way there. I wanted to polish things up a bit so I'm opening a new PR and crediting the previous PR author as a co-author since I used parts of their original PR.
This PR includes:
Closes #2846
Ref #2557