fix(build):调整Cargo编译配置。
This commit is contained in:
parent
0697450604
commit
17a4b3fda1
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -22,3 +22,5 @@ dist-ssr
|
||||||
*.njsproj
|
*.njsproj
|
||||||
*.sln
|
*.sln
|
||||||
*.sw?
|
*.sw?
|
||||||
|
|
||||||
|
/src-tauri/.cargo/
|
||||||
|
|
|
@ -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"]
|
|
Loading…
Reference in New Issue
Block a user