diff --git a/Library/Homebrew/extend/os/mac/hardware.rb b/Library/Homebrew/extend/os/mac/hardware.rb index 3cc0dab17d..2cc0d30b7e 100644 --- a/Library/Homebrew/extend/os/mac/hardware.rb +++ b/Library/Homebrew/extend/os/mac/hardware.rb @@ -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 diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 0ddd74cc6c..a80ff7ac25 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -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.