https://pantsbuild.org/ logo
h

happy-kitchen-89482

03/07/2019, 12:24 AM
Is there any progress on the once-discussed idea of being able to consume pre-built
native_engine.so
when working on pants itself? For those of us not working on the engine, the need to rebuilt it every time we pull is a huge productivity drag.
šŸ‘€ 1
šŸ‘ 1
a

average-vr-56795

03/07/2019, 2:06 AM
export MODE=debug
will save you minutes at the expense of a slightly slower pants...
ā˜ļø 1
h

happy-kitchen-89482

03/07/2019, 4:02 AM
What does that do?
a

aloof-angle-91616

03/07/2019, 4:23 AM
it turns off optimizations in the cargo build
i would be a ridiculously huge fan of this
would we serve it from some s3 which gets populated by a travis run?
h

happy-kitchen-89482

03/07/2019, 5:07 AM
So we'd still be building the engine, it would just be a bit faster?
Yeah, we only need to populate it from master
come to think of it we already create it on S3 for every build
a

aloof-angle-91616

03/07/2019, 5:26 PM
that's what i was thinking
i need to go to an appointment for an hour but i'll make an issue/pr about this if nobody else gets to it first
a

average-vr-56795

03/08/2019, 10:38 AM
On my laptop, ā€œa bit fasterā€ is like a 9 minute difference on a clean build…
a

aloof-angle-91616

03/09/2019, 1:15 AM
is there a reason we can't default
MODE=debug
?
a

average-vr-56795

03/11/2019, 11:11 AM
The problem with defaulting to
MODE=debug
is is slows down pants sometimes like 10x, so people trying to use pants in source mode in large repos, or do any kind of benchmarking, will get really slow results, and it may not be obvious why. People should only need to re-build the rust stuff proportional to when we make rust changes, which is still pretty rare (the big kicker is every 6 weeks they’ll need to clean build because we update rust versions)….