From c2251d49b5b2572b33bd865b01c98155b2b26299 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 4 Jun 2022 17:45:59 +0900 Subject: [PATCH] .github/workflows: add -l to -gcflags --- .github/workflows/test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4e2d1535e..7dfb38d33 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -80,7 +80,10 @@ jobs: - name: go build run: | go build -tags=example -v ./... - go build -tags=example -gcflags=all=-N -v ./... # Compile without optimization to check potential stack overflow. + # Compile without optimization to check potential stack overflow. + # The option '-gcflags=all=-N -l' is often used at Visual Studio Code. + # See also https://go.googlesource.com/vscode-go/+/HEAD/docs/debugging.md#launch and the issue #2120. + go build -tags=example "-gcflags=all=-N -l" -v ./... env GOOS=js GOARCH=wasm go build -tags=example -v ./... env GOOS=windows GOARCH=amd64 go build -tags=example -v ./... env GOOS=windows GOARCH=386 go build -tags=example -v ./...