Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ else
echo "rust build-std is disabled"
fi

lib_suffix="so"
RAFTSTORE_PROXY_ENABLE_STATIC="${RAFTSTORE_PROXY_ENABLE_STATIC:-0}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test comment


if $RAFTSTORE_PROXY_ENABLE_STATIC; then
lib_suffix="so"
else
lib_suffix="a"
fi

if [[ $(uname -s) == "Darwin" ]]; then
lib_suffix="dylib"
# use the openssl 1.1 lib from system
Expand Down
2 changes: 1 addition & 1 deletion raftstore-proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ publish = false

[lib]
name = "raftstore_proxy"
crate-type = ["cdylib"]
crate-type = ["cdylib", "staticlib"]

[dependencies]
server = { path = "../components/server" }