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

Remove compilers from build object #5397

Merged

Conversation

jon-turney
Copy link
Member

A step on the way to sorting out #2392.
Closes #4771.

Copy link
Member

@dcbaker dcbaker left a comment

Choose a reason for hiding this comment

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

lgtm

@jpakkane
Copy link
Member

⚔️ conflicts.

It doesn't make much sense to have this and not also have
cross-compilers (so any use of this is already pretty suspect as
probably wrong when cross-compiling).

This information is accessible anyhow via environment.coredata.
After mesonbuild#4445, the code in both branches of this conditional is the same.
Switch from build.compiler to environment.coredata.compiler and likewise
from build.cross_compiler to environment.coredata.cross_compiler in
backends. (Only seems to be actually used in ninja backend).
The actual data is in Coredata (which is serialized) and we just held a
reference in Build for (in)convenience.
@jon-turney jon-turney force-pushed the remove-compilers-from-build-object branch from 7fcb82d to 4da92e7 Compare May 18, 2019 14:58
@jon-turney
Copy link
Member Author

Rebased to resolve conflicts

@dcbaker dcbaker merged commit fb35e6f into mesonbuild:master May 20, 2019
@jon-turney jon-turney deleted the remove-compilers-from-build-object branch October 29, 2019 12:35
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.

Remove build.{,cross_}compilers
3 participants