Skip to content

Commit

Permalink
chore(tooling): Allow clippy to run outside of autotools
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Sep 27, 2023
1 parent f67fa8d commit 9d8635e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ rustflags = ["-C", "link-args=-rdynamic"]
rustflags = ["-C", "link-args=-rdynamic"]

# Since autotools sets these and we are *not* forcing them here, this will not
# affect release builds. It will affect `cargo run` and make it easier to test
# locally since the Lua loader path will be relative to the current sources.
# affect release builds. It will affect `cargo run`, `cargo clippy` and others
# making it easier to test locally since the Lua loader path and other
# resources will be relative to the current sources.
[env]
SILE_PATH = { value = "", relative = true }
CONFIGURE_DATADIR = { value = "", relative = true }

[target.'cfg(all())']
rustflags = [
Expand Down

0 comments on commit 9d8635e

Please sign in to comment.