-
Notifications
You must be signed in to change notification settings - Fork 85
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
Be fast by default #630
Comments
FWIW, @brentleyjones is likely motivated to do the same for https://github.com/bazelbuild/bazel + |
Yeah, I think the rules_swift ones we should flip at the rules level as well. I've added it to my todo list. The only one we wouldn't apply by default WMO, as that one is more subjective. Btw, |
I think the tradeoff is 1-2 of these might produce errors that don't have a solution. The upside is getting more people to report bugs or fix bugs for the happy path. As long as it's possible / easy to flip them off it SGTM. PS: I'd suggest fixing this one will means ripping out the code to make it conditional
AFAIK there should be no downside. I seen bug reports / pings about it being broken without this. |
Isn't a potential downside of |
There isn't a general answer I have as it requires consideration and knowledge of the application and usage to optimize / enable something like this. Same applies for other optimizations here and ones coming soon 😉 |
What about grouping all these tweaks that are too unsafe to turn ON by default under a single feature flag (or alike), so:
For example: |
@jerrymarino sure, but you said "AFAIK there should be no downside", and I was giving you a downside, and why you should allow it it stay conditional. |
@brentleyjones thanks for the suggestion 👍 Given the goal of the feature is to enable M1 builds that otherwise wouldn't work. In other words, if you aren't able to use the feature - is there a reason you can't just use the x86 in that case? If you are relying on the errors it prints to not use the M1 slice - we can improve the developer messaging instead:
Anecdotally I have gotten a lot of feedback on how this enabled people to use Apple silicon 📈 . The majority of SDKs people believed they couldn't ran on a simulator turned out to be fine because the developers never used them on a simulator anyways |
Also I'm pretty sure there is a bug in cocoapods-bazel with that disabled: |
bazelbuild/rules_swift@c7ed06e We will cut a new rules_swift release today as well. Edit: released https://github.com/bazelbuild/rules_swift/releases/tag/1.5.0 |
Most people with moderate to large apps ends up configuring a set of options to make it fast:
We should turn these options on by default so that people don't need to figure out how to make it fast or worse, put up with slow builds 🐢 ...
The text was updated successfully, but these errors were encountered: