Skip to content

Commit

Permalink
Merge pull request #2133 from kuzudb/rust-non-bundled-fix
Browse files Browse the repository at this point in the history
Fix non-bundled rust build
  • Loading branch information
ray6080 committed Oct 2, 2023
2 parents 0a86247 + 9bb90ae commit 119813d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 3 additions & 0 deletions tools/rust_api/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ fn build_ffi(
if bundled {
build.define("KUZU_BUNDLED", None);
}
if link_mode() == "static" {
build.define("KUZU_STATIC_DEFINE", None);
}

build.includes(include_paths);

Expand Down
5 changes: 0 additions & 5 deletions tools/rust_api/include/kuzu_rs.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
#pragma once

// We're linking against the static library, so we want to ignore exports/imports
#ifndef KUZU_STATIC_DEFINE
#define KUZU_STATIC_DEFINE
#endif

#include <memory>

#include "rust/cxx.h"
Expand Down

0 comments on commit 119813d

Please sign in to comment.