Enables debug info (a.k.a. DWARF) by default (#924)

This makes DWARF enabled by default, with an opt-out flag. This didn't
need to be experimental as the feature was requested for a long time and
there's no API impact to using it.

Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
Crypt Keeper
2022-12-15 14:03:20 +09:00
committed by GitHub
parent 126bd9050d
commit 5f7467b3e0
7 changed files with 64 additions and 65 deletions

View File

@@ -50,6 +50,15 @@ func TestRuntimeConfig(t *testing.T) {
memoryCapacityFromMax: true,
},
},
{
name: "WithDebugInfoEnabled",
with: func(c RuntimeConfig) RuntimeConfig {
return c.WithDebugInfoEnabled(false)
},
expected: &runtimeConfig{
dwarfDisabled: true, // dwarf is a more technical name and ok here.
},
},
}
for _, tt := range tests {