diff --git a/makefiles/duckdb_extension.Makefile b/makefiles/duckdb_extension.Makefile index b8c7f4d..6f01766 100644 --- a/makefiles/duckdb_extension.Makefile +++ b/makefiles/duckdb_extension.Makefile @@ -24,6 +24,11 @@ ifneq ($(CXX),g++) endif endif +#### Core extensions, allows easily building one of the core extensions +ifneq ($(CORE_EXTENSIONS),) + CORE_EXTENSION_VAR:=-DCORE_EXTENSIONS="$(CORE_EXTENSIONS)" +endif + #### OSX config OSX_BUILD_FLAG= ifneq (${OSX_BUILD_ARCH}, "") @@ -53,7 +58,7 @@ endif #### Configuration for this extension EXTENSION_FLAGS=-DDUCKDB_EXTENSION_CONFIGS='${EXT_CONFIG}' -BUILD_FLAGS=-DEXTENSION_STATIC_BUILD=1 $(EXTENSION_FLAGS) ${EXT_FLAGS} $(OSX_BUILD_FLAG) $(RUST_FLAGS) $(TOOLCHAIN_FLAGS) -DDUCKDB_EXPLICIT_PLATFORM='${DUCKDB_PLATFORM}' -DCUSTOM_LINKER=${CUSTOM_LINKER} +BUILD_FLAGS=-DEXTENSION_STATIC_BUILD=1 $(EXTENSION_FLAGS) ${EXT_FLAGS} $(CORE_EXTENSION_VAR) $(OSX_BUILD_FLAG) $(RUST_FLAGS) $(TOOLCHAIN_FLAGS) -DDUCKDB_EXPLICIT_PLATFORM='${DUCKDB_PLATFORM}' -DCUSTOM_LINKER=${CUSTOM_LINKER} debug: mkdir -p build/debug