Skip to content

Commit

Permalink
feat: calculate collisions in parallel (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgazelka authored Mar 24, 2024
1 parent 63dc63a commit 1fcd01c
Show file tree
Hide file tree
Showing 9 changed files with 143 additions and 97 deletions.
24 changes: 13 additions & 11 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
# https://github.com/bevyengine/bevy/blob/main/.cargo/config_fast_builds.toml

# Add the contents of this file to `config.toml` to enable "fast build" configuration. Please read the notes below.

# NOTE: For maximum performance, build using a nightly compiler
# If you are using rust stable, remove the "-Zshare-generics=y" below.
# https://nnethercote.github.io/perf-book/build-configuration.html

[target.x86_64-unknown-linux-gnu]
linker = "clang"
rustflags = [
"-Ctarget-cpu=native",
"-Clink-arg=-fuse-ld=lld",
"-Zshare-generics=y",
"-Zthreads=0",
]

[target.x86_64-unknown-linux-musl]
linker = "clang"
rustflags = [
"-Ctarget-cpu=native",
"-Clink-arg=-fuse-ld=/usr/bin/mold",
"link-arg=--ld-path=/usr/local/bin/mold",
"-Zshare-generics=y",
"-Zthreads=0",
]

[target.aarch64-unknown-linux-musl]
linker = "clang"
rustflags = [
"-Ctarget-cpu=native",
"-Clink-arg=-fuse-ld=/usr/bin/mold",
"-Zshare-generics=y",
"-Zthreads=0",
]
Expand All @@ -30,6 +34,7 @@ rustflags = [
# `brew install llvm`
[target.x86_64-apple-darwin]
rustflags = [
"-Ctarget-cpu=native",
"-C",
"link-arg=-fuse-ld=/usr/local/opt/llvm/bin/ld64.lld",
"-Zshare-generics=y",
Expand All @@ -38,15 +43,16 @@ rustflags = [

[target.aarch64-apple-darwin]
rustflags = [
"-C",
"link-arg=-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld",
"-Ctarget-cpu=native",
"-Clink-arg=-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld",
"-Zshare-generics=y",
"-Zthreads=0",
]

[target.x86_64-pc-windows-msvc]
linker = "rust-lld.exe"
rustflags = [
"-Ctarget-cpu=native",
"-Zshare-generics=n",
"-Zthreads=0",
]
Expand All @@ -58,7 +64,3 @@ rustflags = [

[registries.crates-io]
protocol = "sparse"

# https://nnethercote.github.io/perf-book/build-configuration.html
[build]
rustflags = ["-C", "target-cpu=native"]
Loading

0 comments on commit 1fcd01c

Please sign in to comment.