From 261f55a526d23366204ac243c6029564a5ce81c3 Mon Sep 17 00:00:00 2001 From: Tokarak <63452145+Tokarak@users.noreply.github.com> Date: Wed, 14 Jun 2023 17:14:05 +0100 Subject: [PATCH] Prepare to migrate to RUSTFLAGS --- Library/Homebrew/extend/os/mac/hardware.rb | 2 +- Library/Homebrew/formula.rb | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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.