From c032b042190dcc37963b025c75e938f3ffa587d0 Mon Sep 17 00:00:00 2001 From: Than McIntosh Date: Tue, 11 Mar 2025 21:19:11 -0400 Subject: [PATCH] internal/buildcfg: fix typo in DWARF 5 enabling code Fix a typo in the code that decides which GOOS values will support use of DWARF 5 ("darwin" was not spelled correctly). Updates #26379. Change-Id: I3a7906d708550fcedc3a8e89d0444bf12b9143f1 Reviewed-on: https://go-review.googlesource.com/c/go/+/656895 Auto-Submit: Ian Lance Taylor Reviewed-by: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI Reviewed-by: David Chase --- src/internal/buildcfg/exp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/buildcfg/exp.go b/src/internal/buildcfg/exp.go index 2dd6045979..8fb4beb7c9 100644 --- a/src/internal/buildcfg/exp.go +++ b/src/internal/buildcfg/exp.go @@ -82,7 +82,7 @@ func ParseGOEXPERIMENT(goos, goarch, goexp string) (*ExperimentFlags, error) { // XCOFF format (as far as can be determined) doesn't seem to // support the necessary section subtypes for DWARF-specific // things like .debug_addr (needed for DWARF 5). - dwarf5Supported := (goos != "dwarwin" && goos != "ios" && goos != "aix") + dwarf5Supported := (goos != "darwin" && goos != "ios" && goos != "aix") baseline := goexperiment.Flags{ RegabiWrappers: regabiSupported, -- 2.50.0