gawk: fix build on Apple Silicon (#36246)

This commit is contained in:
Adam J. Stewart 2023-03-20 02:14:00 -06:00 committed by GitHub
parent d5e30ac5f1
commit 75714d30f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,4 +53,10 @@ def determine_version(cls, exe):
return match.group(1) if match else None return match.group(1) if match else None
def configure_args(self): def configure_args(self):
return self.enable_or_disable("nls") args = self.enable_or_disable("nls")
# https://github.com/Homebrew/homebrew-core/blob/5b93511fd6b87789871e30c9fe0790949bd6634c/Formula/gawk.rb#L38,L42
if self.spec.satisfies("platform=darwin target=aarch64:"):
args.append("--disable-pma")
return args