diff --git a/CMakeLists.txt b/CMakeLists.txt index cfe1a96..05b4a28 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,6 +66,9 @@ add_subdirectory(exon/src) add_library(${EXTENSION_NAME} STATIC ${EXTENSION_SOURCES}) +# print the CMAKE_CURRENT_BINARY_DIR +message(STATUS "CMAKE_CURRENT_BINARY_DIR: ${CMAKE_CURRENT_BINARY_DIR}") + target_link_libraries(${EXTENSION_NAME} PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/libexon_duckdb.a # ${WFA2_LIBRARIES} diff --git a/Makefile b/Makefile index e6905e3..f8a5dcb 100644 --- a/Makefile +++ b/Makefile @@ -58,7 +58,6 @@ debug: release: mkdir -p build/release && \ cmake $(GENERATOR) $(BUILD_FLAGS) $(CLIENT_FLAGS) -DCMAKE_BUILD_TYPE=Release -S ./duckdb/ -B build/release && \ - cmake --build build/release --config Release -j 8 --target cargo-prebuild_exon_duckdb && \ cmake --build build/release --config Release -j 8 --target cargo-build_exon_duckdb && \ cmake --build build/release --config Release diff --git a/exon-duckdb/Cargo.toml b/exon-duckdb/Cargo.toml index 7ecdd30..463261d 100644 --- a/exon-duckdb/Cargo.toml +++ b/exon-duckdb/Cargo.toml @@ -21,3 +21,7 @@ tokio = {version = "1", features = ["rt-multi-thread"]} [build-dependencies] cbindgen = "0.26.0" + +[profile.release] +debug = true +opt-level = 0