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

Flagless multiplatform builds: v0 #6519

gregestren opened this Issue Oct 25, 2018 · 1 comment


None yet
3 participants

gregestren commented Oct 25, 2018

Tracking issue on Bazel Configurability Roadmap


  • Something like this works:
$ cat a/BUILD
cc_binary(name = "app_for_mac", platforms = ["//platforms:mac"])

$ bazel build //a:app_for_mac # Automatically builds for a Mac, no command line flags!

This syntax is theoretical; it may not look exactly like this. The point is rules can embed which platforms they target and all the correct toolchains get linked in without having to specify anything at the command line.

Furthermore, different rules needing different toolchains (e.g. $ bazel build //a:all) will all independently do the right thing.

This is v0 because it may have performance consequences. This also doesn't cover non-platform settings (like app version, enable/disable feature X), which will be covered elsewhere in the roadmap.


This comment has been minimized.


gregestren commented Oct 25, 2018

Prerequisite work is still happening, so marking as a P3 now. This means we're not actively working on this yet. Will upgrade priority once the prereqs are out of the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment