-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
124 changed files
with
2,809 additions
and
295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
# Recommended by bevy: https://bevyengine.org/learn/book/getting-started/setup/ | ||
[target.x86_64-unknown-linux-gnu] | ||
linker = "clang" | ||
## TODO: the path to mold is not right when using nix | ||
# rustflags = ["-C", "link-arg=-fuse-ld=mold"] | ||
# rustflags = ["-C", "linker=mold"] | ||
## rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"] | ||
rustflags = [ | ||
"-Clink-arg=-fuse-ld=mold", # Use mold Linker | ||
# "-Zshare-generics=y", # (Nightly) Make the current crate share its generic instantiations | ||
# "-Zthreads=0", # (Nightly) Use improved multithreading with the recommended amount of threads. | ||
] | ||
|
||
# compile simulation as a wasm binary for static webpage | ||
[target.wasm32-unknown-unknown] | ||
runner = "wasm-server-runner" | ||
rustflags = [ | ||
"--cfg=web_sys_unstable_apis", | ||
] | ||
|
||
[build] | ||
rustflags = ["-Clink-arg=-fuse-ld=mold"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/target | ||
.direnv/ | ||
**/dist/ | ||
|
||
*.log | ||
# pixi environments | ||
|
Oops, something went wrong.