Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3375250
D7172.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
848 B
Referenced Files
None
Subscribers
None
D7172.diff
View Options
diff --git a/scripts/build-rust-native-library.sh b/scripts/build-rust-native-library.sh
--- a/scripts/build-rust-native-library.sh
+++ b/scripts/build-rust-native-library.sh
@@ -25,7 +25,7 @@
# Set C++ standard and build cxx bridge
export CXXFLAGS="-std=c++14"
-env PATH="${build_path}" cargo build
+env PATH="${build_path}" cargo build --release
# Build universal static library (works on simulator and iOS)
env PATH="${build_path}" cargo lipo --release
# Unset the flag specifying C++ standard
diff --git a/services/tunnelbroker/Dockerfile b/services/tunnelbroker/Dockerfile
--- a/services/tunnelbroker/Dockerfile
+++ b/services/tunnelbroker/Dockerfile
@@ -37,7 +37,7 @@
# Build Rust by Cargo
WORKDIR /transferred/services/tunnelbroker
-RUN cargo build
+RUN cargo build --release
CMD if [ "$COMM_TEST_SERVICES" -eq 1 ];\
then\
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 7:16 PM (20 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2591422
Default Alt Text
D7172.diff (848 B)
Attached To
Mode
D7172: [cargo] Add `--release` flag to native library/tunnelbroker builds
Attached
Detach File
Event Timeline
Log In to Comment