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

Allow setting the target platform directly on targets #4638

Closed
katre opened this issue Feb 15, 2018 · 3 comments
Closed

Allow setting the target platform directly on targets #4638

katre opened this issue Feb 15, 2018 · 3 comments
Assignees
Labels
P2 We'll consider working on this in future. (Assignee optional) team-Configurability platforms, toolchains, cquery, select(), config transitions type: feature request

Comments

@katre
Copy link
Member

katre commented Feb 15, 2018

It would be useful to directly specify the target platform on some types of targets (typically, "top level" or binary targets). This will enable us to support builds for multiple target platforms in the same build, as well as hard-coding some types of configuration information.

Example syntax:

cc_binary(name = "my_binary",
  srcs = [...],
  deps = [...],
  platforms = [ "//platforms:linux", "//platforms:osx"])
@katre katre added type: feature request P2 We'll consider working on this in future. (Assignee optional) category: extensibility > toolchains labels Feb 15, 2018
@katre katre self-assigned this Feb 15, 2018
@katre
Copy link
Member Author

katre commented Feb 15, 2018

Note that this is being added for tracking purposes, this feature will not be worked on for some time.

@ztl8702
Copy link

ztl8702 commented Apr 3, 2019

+1 for this: I have a use case where I need to compile both x64 and x86 binaries, pack them into a single file, then perform subsequent build steps on the file.

@jin jin added team-Configurability platforms, toolchains, cquery, select(), config transitions and removed category: extensibility > toolchains labels May 12, 2020
@katre
Copy link
Member Author

katre commented Feb 25, 2021

Closing this as a dupe of #6519 (this is older, that has more activity.)

@katre katre closed this as completed Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 We'll consider working on this in future. (Assignee optional) team-Configurability platforms, toolchains, cquery, select(), config transitions type: feature request
Projects
None yet
Development

No branches or pull requests

3 participants