tauri: [bug] Build error `tauri-macros`
Describe the bug
In command “Cargo tauri dev”, it failed at compiling tauri-macros error: export ordinal too large: 68600 collect2.exe: error: ld returned 1 exit status
error: could not compile tauri-macros due to previous error
After changed the “Cargo.toml” with [profile.dev.build-override] opt-level = 2
It can solve this issue in “dev”. But it will happen again in releasing with command “Cargo tauri build”
Reproduction
No response
Expected behavior
No response
Platform and versions
Environment › OS: Windows 10.0.19042 X64 › Webview2: 103.0.1264.71 › MSVC: › Node.js: Not installed! › npm: Not installed! › pnpm: Not installed! › yarn: Not installed! › rustup: Not installed! › rustc: 1.62.0 › cargo: 1.62.0 › Rust toolchain:
I don’t know why here doesn’t show the rust toolchain. The toolchain I used is x86-64-windows-gnu. The GCC is installed through msys2.
Stack trace
No response
Additional context
No response
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (5 by maintainers)
One workaround
Go to this file:
Go to build->try_build:
add this line:
Then run: