-
Notifications
You must be signed in to change notification settings - Fork 607
oss: Add buck_build
cfg
#2902
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
oss: Add buck_build
cfg
#2902
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/2902
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 5cb3db6 with merge base 599cfde ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D55791957 |
6183633
to
e4fdd39
Compare
Summary: I'd like a simple way to check whether a build is using cargo or buck. Unfortunately, that doesn't exist right now. I suggest replacing the `buck_oss_build` cfg with a simpler `buck_build` cfg. This will be set internally via package files and externally via the OSS shim. (TBD: Should we set it in the macros internally too?) People can still recover the `#[cfg(buck_oss_build)]` behavior by checking `#[cfg(all(fbcode_build, buck_build))]`. Also, this diff cleans up some linter overrides via `prelude = native` Reviewed By: dtolnay Differential Revision: D55791957
This pull request was exported from Phabricator. Differential Revision: D55791957 |
Summary: I'd like a simple way to check whether a build is using cargo or buck. Unfortunately, that doesn't exist right now. I suggest replacing the `buck_oss_build` cfg with a simpler `buck_build` cfg. This will be set internally via package files and externally via the OSS shim. (TBD: Should we set it in the macros internally too?) People can still recover the `#[cfg(buck_oss_build)]` behavior by checking `#[cfg(all(fbcode_build, buck_build))]`. Also, this diff cleans up some linter overrides via `prelude = native` Reviewed By: dtolnay Differential Revision: D55791957
e4fdd39
to
34927b2
Compare
This pull request was exported from Phabricator. Differential Revision: D55791957 |
Summary: I'd like a simple way to check whether a build is using cargo or buck. Unfortunately, that doesn't exist right now. I suggest replacing the `buck_oss_build` cfg with a simpler `buck_build` cfg. This will be set internally via package files and externally via the OSS shim. (TBD: Should we set it in the macros internally too?) People can still recover the `#[cfg(buck_oss_build)]` behavior by checking `#[cfg(all(fbcode_build, buck_build))]`. Also, this diff cleans up some linter overrides via `prelude = native` Reviewed By: dtolnay Differential Revision: D55791957
34927b2
to
5cb3db6
Compare
This pull request was exported from Phabricator. Differential Revision: D55791957 |
@pytorchbot merge |
This pull request has been merged in c4054f1. |
Summary: X-link: pytorch/executorch#2902 I'd like a simple way to check whether a build is using cargo or buck. Unfortunately, that doesn't exist right now. I suggest replacing the `buck_oss_build` cfg with a simpler `buck_build` cfg. This will be set internally via package files and externally via the OSS shim. (TBD: Should we set it in the macros internally too?) People can still recover the `#[cfg(buck_oss_build)]` behavior by checking `#[cfg(all(fbcode_build, buck_build))]`. Also, this diff cleans up some linter overrides via `prelude = native` Reviewed By: dtolnay Differential Revision: D55791957 fbshipit-source-id: 1a411ce0ad831015cf55f8722512490e33d77454
Summary: X-link: pytorch/executorch#2902 I'd like a simple way to check whether a build is using cargo or buck. Unfortunately, that doesn't exist right now. I suggest replacing the `buck_oss_build` cfg with a simpler `buck_build` cfg. This will be set internally via package files and externally via the OSS shim. (TBD: Should we set it in the macros internally too?) People can still recover the `#[cfg(buck_oss_build)]` behavior by checking `#[cfg(all(fbcode_build, buck_build))]`. Also, this diff cleans up some linter overrides via `prelude = native` Reviewed By: dtolnay Differential Revision: D55791957 fbshipit-source-id: 1a411ce0ad831015cf55f8722512490e33d77454
Summary:
I'd like a simple way to check whether a build is using cargo or buck. Unfortunately, that doesn't exist right now.
I suggest replacing the
buck_oss_build
cfg with a simplerbuck_build
cfg. This will be set internally via package files and externally via the OSS shim. (TBD: Should we set it in the macros internally too?)People can still recover the
#[cfg(buck_oss_build)]
behavior by checking#[cfg(all(fbcode_build, buck_build))]
.Also, this diff cleans up some linter overrides via
prelude = native
Reviewed By: dtolnay
Differential Revision: D55791957