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

[20.10 backport] hack/make: Don't add -buildmode=pie with -race #44755

Merged
merged 1 commit into from
Jan 9, 2023

Conversation

vvoland
Copy link
Contributor

@vvoland vvoland commented Jan 5, 2023

Backport of:

This wasn't a clean cherry-pick due lack of #44546.

- What I did
Don't add -buildmode=pie when BUILDFLAGS has -race flag.

- How to verify it
make TEST_FILTER='TestLogsFollowGoroutinesWithStdout' BUILDFLAGS='-race' test-integration
should run TestLogsFollowGoroutinesWithStdout integration test with race detector instead of failing with: -buildmode=pie not supported when -race is enabled

- Description for the changelog

Make it possible to add `-race` to the BUILDFLAGS without making the
build fail with error:
"-buildmode=pie not supported when -race is enabled"

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
@vvoland vvoland requested a review from tianon as a code owner January 5, 2023 20:26
@vvoland vvoland added area/testing kind/bugfix PR's that fix bugs labels Jan 5, 2023
@thaJeztah thaJeztah added this to the 20.10.23 milestone Jan 5, 2023
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@thaJeztah thaJeztah merged commit 208fb1c into moby:20.10 Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/testing kind/bugfix PR's that fix bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants