Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
Adds a couple of flags to Cargo.toml to fix build error on Windows.
Browse files Browse the repository at this point in the history
Solution taken from here: bevyengine/bevy#1110
  • Loading branch information
erezsh committed Apr 23, 2024
1 parent b858433 commit 45773dd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,11 @@ harness = false

[profile.dev]
opt-level = 1


# Enable high optimizations for dependencies (incl. Bevy)
[profile.dev.package."*"]
opt-level = 3

[target.x86_64-pc-windows-msvc]
linker = "rust-lld.exe"

0 comments on commit 45773dd

Please sign in to comment.