Skip to content

Commit

Permalink
feat: tweaks to build
Browse files Browse the repository at this point in the history
  • Loading branch information
tshauck committed Oct 18, 2023
1 parent 30b11a2 commit 3bb8e25
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions exon-duckdb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ tokio = {version = "1", features = ["rt-multi-thread"]}

[build-dependencies]
cbindgen = "0.26.0"

[profile.release]
debug = true
opt-level = 0

0 comments on commit 3bb8e25

Please sign in to comment.