.github/workflows: add -l to -gcflags

This commit is contained in:
Hajime Hoshi 2022-06-04 17:45:59 +09:00
parent 1fa5696c91
commit c2251d49b5

View File

@ -80,7 +80,10 @@ jobs:
- name: go build - name: go build
run: | run: |
go build -tags=example -v ./... 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=js GOARCH=wasm go build -tags=example -v ./...
env GOOS=windows GOARCH=amd64 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 ./... env GOOS=windows GOARCH=386 go build -tags=example -v ./...