-
Notifications
You must be signed in to change notification settings - Fork 7
update build to latest duckdb #27
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
base: main
Are you sure you want to change the base?
Conversation
| debug: | ||
| mkdir -p build/debug && \ | ||
| cmake $(GENERATOR) $(FORCE_COLOR) $(EXTENSION_FLAGS) ${CLIENT_FLAGS} -DEXTENSION_STATIC_BUILD=1 -DCMAKE_BUILD_TYPE=Debug ${BUILD_FLAGS} -S ./duckdb/ -B build/debug && \ | ||
| mkdir -p build/debug && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-DEXTENSION_STATIC_BUILD=1 is already in the ${BUILD_FLAGS} so it's just a clean up
| EXT_NAME="odbc_scanner" | ||
| EXT_NAME_UPPERCASE=$(shell echo $(EXT_NAME) | tr '[:lower:]' '[:upper:]') | ||
| EXTENSION_FLAGS=-DDUCKDB_EXTENSION_NAMES=${EXT_NAME} -DDUCKDB_EXTENSION_${EXT_NAME_UPPERCASE}_PATH="$(PROJ_DIR)" -DDUCKDB_EXTENSION_${EXT_NAME_UPPERCASE}_SHOULD_LINK="TRUE" -DDUCKDB_EXTENSION_${EXT_NAME_UPPERCASE}_LOAD_TESTS="FALSE" -DDUCKDB_EXTENSION_${EXT_NAME_UPPERCASE}_INCLUDE_PATH="$(PROJ_DIR)src/include" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I extracted the odbc_scanner string to reuse it the way DuckDB parse it in its CMake
The actual changes are:
DDUCKDB_OOT_EXTENSION->DDUCKDB_EXTENSION- new required flag
-DDUCKDB_EXTENSION_${EXT_NAME_UPPERCASE}_LOAD_TESTS="FALSE"(I don't know we want it false or not, but at least it works)
| ```shell | ||
| nix run .#build | ||
| ./build/release/duckdb | ||
| ./build/release/duckdb -unsigned |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not required but I thought it was relevant as we are going to load the unsigned extension later on
|
Looking good. I'm getting this error when building on Linux. |
This is required to build the extension against latest DuckDB version (
v0.8.2-dev2278)Don't forget to do a
make pullto retrieve the updated git submodule of DuckDB