fix(build):调整Cargo编译配置。

This commit is contained in:
徐涛 2023-03-21 16:45:42 +08:00
parent 0697450604
commit 17a4b3fda1
2 changed files with 2 additions and 8 deletions

2
.gitignore vendored
View File

@ -22,3 +22,5 @@ dist-ssr
*.njsproj
*.sln
*.sw?
/src-tauri/.cargo/

View File

@ -1,8 +0,0 @@
[target.'cfg(target_os = "linux")']
rustflags = ["-C", "link-arg=-nostartfiles"]
[target.'cfg(target_os = "windows")']
rustflags = ["-C", "link-args=/ENTRY:_start /SUBSYSTEM:console"]
[target.'cfg(target_os = "macos")']
rustflags = ["-C", "link-args=-e __start -static -nostartfiles"]