Skip to content

Commit

Permalink
Add prefer-dynamic to cargo config
Browse files Browse the repository at this point in the history
  • Loading branch information
XAMPPRocky committed Mar 17, 2021
1 parent c18f9e1 commit 144a447
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[build]
# Currently there's an issue where the Example CPU runner fails without
# `-C prefer-dynamic`.
rustflags = "-C prefer-dynamic"
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ codegen-units = 16

[patch.crates-io]
spirv-std = { path = "./crates/spirv-std" }
spirv-std-macros = { path = "./crates/spirv-std-macros" }
glam = { git = "https://github.com/bitshifter/glam-rs.git", rev ="b3e94fb" }
4 changes: 0 additions & 4 deletions examples/runners/cpu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ edition = "2018"
license = "MIT OR Apache-2.0"
publish = false

[[bin]]
name = "example-runner-cpu"
test = false

[dependencies]
minifb = "0.19.2"
# bring in the shader as natively compiled code
Expand Down

0 comments on commit 144a447

Please sign in to comment.