Commit dca1a76
committed
Fix Rust LTO compilation conflict in Docker build
- Remove incompatible LTO flags from RUSTFLAGS in Dockerfile.production
- Add proper LTO configuration in Cargo.toml [profile.release] section
- Fix 'options -C embed-bitcode=no and -C lto are incompatible' error
- Use native CPU target optimization while avoiding bitcode conflicts1 parent 7a51868 commit dca1a76
2 files changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments