cmd/asm: default include directories should include $GOROOT/pkg/include #41166
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Save the following source file as
foo.s
:What did you expect to see?
Nothing.
What did you see instead?
The
asm
tool should by default search$GOROOT/pkg/include
for include files because nearly every Go assembly file will include at leasttextflag.h
. This path is searched when assembling files throughgo tool build
, so this discrepancy seems strange and unexpected to me. Not having to manually specify-I $GOROOT/pkg/include
would be a nice quality of nice quality of life improvement.The text was updated successfully, but these errors were encountered: