You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue reproduce with the latest releases of all the above?
Yes
What did you do?
//tests/legacy/build_constraints:go_default_test is incorrect. It includes Go assembly files in a package with cgo.
What did you expect to see?
Go assembly sources should be rejected with a message like package using cgo has Go assembly file asm_linux.s. Both .s and .S files should be included in the build and should be assembled with the C compiler. This should only happen for packages with cgo = True when cgo is enabled.
What did you see instead?
Go assembly sources are assembled with the Go assembler. .S files should not be included in the build unless cgo = True and cgo is enabled.
The text was updated successfully, but these errors were encountered:
…3652)
The native "go build" tool compiles assembly in a Cgo package with
the C compiler, and compiles assembly in a pure Go package with the
Go assembler. The build_constraints test previously mixed Go
assembler files with Cgo files. This caused the native go test to
fail with:
package using cgo has Go assembly file asm_linux_amd64.s
Splitting this into two separate packages fixes this.
This problem was reported in:
#2006
This will fix failing tests in my attempt to fix that issue:
#3648
What version of rules_go are you using?
0.18.1
What version of Bazel are you using?
0.23.2
Does this issue reproduce with the latest releases of all the above?
Yes
What did you do?
//tests/legacy/build_constraints:go_default_test
is incorrect. It includes Go assembly files in a package with cgo.What did you expect to see?
Go assembly sources should be rejected with a message like
package using cgo has Go assembly file asm_linux.s
. Both .s and .S files should be included in the build and should be assembled with the C compiler. This should only happen for packages withcgo = True
when cgo is enabled.What did you see instead?
Go assembly sources are assembled with the Go assembler. .S files should not be included in the build unless
cgo = True
and cgo is enabled.The text was updated successfully, but these errors were encountered: