File tree Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 11[build ]
2- # Removed incompatible Rust flags
3- # Previous configuration
2+ # Removed incompatible Rust flags to prevent build errors
3+ # Previous configuration was incompatible with LTO:
44# rustflags = "-C embed-bitcode=no"
5+ #
6+ # NOTE: The flags "-C embed-bitcode=no" and "-C lto" are incompatible.
7+ # When using LTO (Link Time Optimization), avoid setting embed-bitcode=no
8+ # in rustflags as Cargo may automatically add it for certain targets.
9+ # Use profile-specific settings instead for better compatibility.
Original file line number Diff line number Diff line change @@ -370,10 +370,10 @@ jobs:
370370 - name : Build for Android
371371 run : |
372372 cd opensvm-dioxus
373- RUSTFLAGS="-C opt-level=3 -C lto=thin" cargo build --target aarch64-linux-android --features android --release --no-default-features --bin opensvm_dioxus
373+ cargo build --target aarch64-linux-android --features android --profile android -release --no-default-features --bin opensvm_dioxus
374374
375375 - name : Upload Android artifact
376376 uses : actions/upload-artifact@v4
377377 with :
378378 name : opensvm-dioxus-android
379- path : opensvm-dioxus/target/aarch64-linux-android/release/opensvm_dioxus
379+ path : opensvm-dioxus/target/aarch64-linux-android/android- release/opensvm_dioxus
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ dioxus build --features desktop --profile desktop-release --platform desktop --r
148148
149149#### Android
150150``` bash
151- RUSTFLAGS= " -C opt-level=3 -C lto=thin " dioxus build --features android --platform android --release
151+ dioxus build --features android --platform android --profile android -release
152152```
153153
154154## Project Structure
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ dioxus build --features web --profile wasm-release --platform web --release
140140RUSTFLAGS=" -C target-cpu=native -C opt-level=3" dioxus build --features desktop --profile desktop-release --platform desktop --release
141141
142142# Android (balanced optimization)
143- RUSTFLAGS= " -C opt-level=3 -C lto=thin " dioxus build --features android --platform android --release
143+ dioxus build --features android --platform android --profile android -release
144144```
145145
146146## Continuous Integration
You can’t perform that action at this time.
0 commit comments