facebook / buck

A fast build system that encourages the creation of small, reusable modules over a variety of platforms and languages.
https://buck.build
Apache License 2.0
8.56k stars 1.16k forks source link

Deprecating #default platform in favor of the inferred host platform #2073

Open mzlee opened 5 years ago

mzlee commented 5 years ago

Enabling should_remap_host_platform switches the #default platform to be the inferred host platform instead (one of linux-86_64, windows-x86_64, macosx-x86_64, or freebsd-x86_64). If the configuration cxx.host_platform is set, then use that instead.

This is also an RFC for what kind of deprecation timeline works for the community. The actual effect can be fairly subtle.

Effect:

See https://github.com/facebook/buck/pull/1562 for the original pull request and discussion

mzlee commented 5 years ago

Just an update here: testing across multiple platforms is made much easier due to this setting, so it's taking longer than originally predicted to switch the default. Sorry for the delay.