Prepare to migrate to RUSTFLAGS

This commit is contained in:
Tokarak 2023-06-14 17:14:05 +01:00
parent cccad3e7d8
commit 261f55a526
2 changed files with 2 additions and 3 deletions

View File

@ -36,7 +36,7 @@ module Hardware
end
if Hardware::CPU.intel? && version >= :mojave
"'-Ctarget-cpu=nehalem'"
"-Ctarget-cpu=nehalem"
else
generic_rustflags_target_cpu
end

View File

@ -1543,8 +1543,7 @@ class Formula
# Standard parameters for cargo builds.
sig { params(root: T.any(String, Pathname), path: String).returns(T::Array[T.any(String, Pathname)]) }
def std_cargo_args(root: prefix, path: ".")
["--locked", "--root", root, "--path", path, "--config",
"build.rustflags=[#{Hardware.rustflags_target_cpu}]"]
["--locked", "--root", root, "--path", path]
end
# Standard parameters for CMake builds.