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

Revert "[Linux] Enable build-ids. (#4995)" #5150

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

compnerd
Copy link
Member

This reverts commit f186ff8. This is incorrectly being applied to Windows builds as well.

This reverts commit f186ff8. This is
incorrectly being applied to Windows builds as well.
@compnerd compnerd requested a review from al45tair December 17, 2024 17:16
@compnerd
Copy link
Member Author

@swift-ci please test

@parkera
Copy link
Contributor

parkera commented Dec 17, 2024

Do we just need to conditionalize this more instead of reverting it?

@compnerd
Copy link
Member Author

I'd rather avoid the warning and then re-enable this once we have proper testing. I'm worried that we might need CMake changes.

@compnerd
Copy link
Member Author

@swift-ci please test Linux platform

@al45tair
Copy link
Contributor

Why is this a problem on Windows? Surely the check_linker_flag prevents the extra argument from being passed to the linker there?

@compnerd
Copy link
Member Author

It doesn't seem to be preventing that from being passed to the invocation.

@al45tair
Copy link
Contributor

Hmmm. In that case, what we should probably do is conditionalise the check_linker_flag test so it doesn't happen on Windows, in which case we then won't pass the build ID argument through. I'm guessing link.exe is treating the argument as a filename, which presumably means that the logic in CMake's check_linker_flag is too simplistic to catch this.

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.

3 participants