Revert "Apply cpu-optimisation to Rust projects (hardcoded)"
This reverts commit c344a3ff3dbde3db05edb802d8951924689d1d65.
This commit is contained in:
parent
c344a3ff3d
commit
a0725083f1
@ -1543,11 +1543,7 @@ class Formula
|
|||||||
# Standard parameters for cargo builds.
|
# Standard parameters for cargo builds.
|
||||||
sig { params(root: T.any(String, Pathname), path: String).returns(T::Array[T.any(String, Pathname)]) }
|
sig { params(root: T.any(String, Pathname), path: String).returns(T::Array[T.any(String, Pathname)]) }
|
||||||
def std_cargo_args(root: prefix, path: ".")
|
def std_cargo_args(root: prefix, path: ".")
|
||||||
["--locked", "--root", root, "--path", path,
|
["--locked", "--root", root, "--path", path]
|
||||||
"--config", "target.x86_64-apple-darwin.rustflags=['-Ctarget-cpu=nehalem']",
|
|
||||||
"--config", "target.aarch64-apple-darwin.rustflags=['-Ctarget-cpu=apple-m1']",
|
|
||||||
# Default target-cpu is apple-m1 since Rust 1.71.0
|
|
||||||
]
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Standard parameters for CMake builds.
|
# Standard parameters for CMake builds.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user