Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests/legacy/build_constraints: Split Go asm test into own package #3652

Merged
merged 1 commit into from
Aug 12, 2023
Merged

tests/legacy/build_constraints: Split Go asm test into own package #3652

merged 1 commit into from
Aug 12, 2023

Conversation

evanj
Copy link
Contributor

@evanj evanj commented Aug 12, 2023

What type of PR is this?

Uncomment one line below and remove others.

Bug fix

Feature
Documentation
Other

What does this PR do? Why is it needed?

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.

Which issues(s) does this PR fix?

This problem was reported in:

Partially Fixes #2006

This will fix failing tests in my attempt to fix that issue: #3648

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
@fmeum fmeum merged commit 07ec991 into bazel-contrib:master Aug 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assembly files not classified correctly, based on cgo mode
2 participants