Skip to content

Commit

Permalink
rearrange cargo configs
Browse files Browse the repository at this point in the history
  • Loading branch information
sayon committed Aug 25, 2024
1 parent 0424223 commit 75e4eb4
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
28 changes: 28 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,30 @@
[build]
rustflags = [
"-W", "missing_docs",
]
incremental = true

[target.x86_64-apple-darwin]
rustflags = [
"-W", "missing_docs",
"-C", "link-arg=-mmacosx-version-min=11.0",
]

[target.aarch64-apple-darwin]
rustflags = [
"-W", "missing_docs",
"-C", "link-arg=-mmacosx-version-min=11.0",
]

[target.aarch64-unknown-linux-musl]
linker = "rust-lld"

[target.aarch64-unknown-linux-musl.compiler-rt-zksolc]
rustc-link-search = ["./target-llvm/target-host/lib/clang/17/lib/aarch64-unknown-linux-musl"]
rustc-link-lib = ["clang_rt.builtins"]

[profile.release]
strip = true

[env]
LLVM_SYS_170_PREFIX = { value = "./target-llvm/target-final/", relative = true, force = false }
28 changes: 0 additions & 28 deletions era-compiler-solidity/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,31 +1,3 @@
[build]
rustflags = [
"-W", "missing_docs",
]
incremental = true

[target.x86_64-apple-darwin]
rustflags = [
"-W", "missing_docs",
"-C", "link-arg=-mmacosx-version-min=11.0",
]

[target.aarch64-apple-darwin]
rustflags = [
"-W", "missing_docs",
"-C", "link-arg=-mmacosx-version-min=11.0",
]

[target.aarch64-unknown-linux-musl]
linker = "rust-lld"

[target.aarch64-unknown-linux-musl.compiler-rt-zksolc]
rustc-link-search = ["./target-llvm/target-host/lib/clang/17/lib/aarch64-unknown-linux-musl"]
rustc-link-lib = ["clang_rt.builtins"]

[profile.release]
strip = true

[tools.clippy]
warn = [
"missing_docs_in_private_items",
Expand Down

0 comments on commit 75e4eb4

Please sign in to comment.