Skip to content

Commit

Permalink
Use shared target directory
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Aug 14, 2022
1 parent 9b211e4 commit 94b6cf5
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
target/
/target
3 changes: 3 additions & 0 deletions lints/arbitrary_cpi/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[build]
target-dir = "../../target"

[target.aarch64-apple-darwin]
linker = "dylint-link"

Expand Down
3 changes: 3 additions & 0 deletions lints/duplicate_mutable_accounts/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[build]
target-dir = "../../target"

[target.aarch64-apple-darwin]
linker = "dylint-link"

Expand Down
3 changes: 3 additions & 0 deletions lints/insecure_account_close/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[build]
target-dir = "../../target"

[target.aarch64-apple-darwin]
linker = "dylint-link"

Expand Down
3 changes: 3 additions & 0 deletions lints/missing_owner_check/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[build]
target-dir = "../../target"

[target.aarch64-apple-darwin]
linker = "dylint-link"

Expand Down
3 changes: 3 additions & 0 deletions lints/missing_signer_check/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[build]
target-dir = "../../target"

[target.aarch64-apple-darwin]
linker = "dylint-link"

Expand Down
3 changes: 3 additions & 0 deletions lints/type_cosplay/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[build]
target-dir = "../../target"

[target.aarch64-apple-darwin]
linker = "dylint-link"

Expand Down
4 changes: 3 additions & 1 deletion scripts/clippy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ WORKSPACE="$(realpath "$SCRIPTS"/..)"
cd "$WORKSPACE"

for X in . lints/*; do
cargo clippy --manifest-path "$X"/Cargo.toml --workspace --tests -- \
pushd "$X"
cargo clippy --workspace --tests -- \
-D warnings \
-W clippy::pedantic
popd
done

0 comments on commit 94b6cf5

Please sign in to comment.