Page MenuHomePhorge

D10186.1767468530.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D10186.1767468530.diff

diff --git a/native/ios/Comm.xcodeproj/project.pbxproj b/native/ios/Comm.xcodeproj/project.pbxproj
--- a/native/ios/Comm.xcodeproj/project.pbxproj
+++ b/native/ios/Comm.xcodeproj/project.pbxproj
@@ -1280,11 +1280,11 @@
);
"LIBRARY_SEARCH_PATHS[sdk=iphoneos*]" = (
"$(inherited)",
- "$(SRCROOT)/../native_rust_library/target/aarch64-apple-ios/release",
+ "$(SRCROOT)/../native_rust_library/target/aarch64-apple-ios/debug",
);
"LIBRARY_SEARCH_PATHS[sdk=iphonesimulator*]" = (
"$(inherited)",
- "$(SRCROOT)/../native_rust_library/target/x86_64-apple-ios/release",
+ "$(SRCROOT)/../native_rust_library/target/x86_64-apple-ios/debug",
);
OTHER_CPLUSPLUSFLAGS = (
"-DFOLLY_MOBILE=1",
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
@@ -36,7 +36,12 @@
# Set C++ standard and build cxx bridge
export CXXFLAGS="-std=c++14"
# Use the determined TARGET for the build
-env PATH="${build_path}" cargo build --release --target="$TARGET"
+# Check if the build configuration is Release
+if [[ "$CONFIGURATION" == "Release" ]]; then
+ env PATH="${build_path}" cargo build --release --target="$TARGET"
+else
+ env PATH="${build_path}" cargo build --target="$TARGET"
+fi
# Unset the flag specifying C++ standard
unset CXXFLAGS
# Copy the CXX files to the cargo project root to make them

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 3, 7:28 PM (7 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5890388
Default Alt Text
D10186.1767468530.diff (1 KB)

Event Timeline