This is awesome - thanks Nathan! On Fri, Apr 14, 2017 at 10:46 PM, Nathan Froyd <[email protected]> wrote:
> Bug 1353810, recently merged to central, adds a new configure option > --enable-debug-rust. This option enables compiling the Rust code > in-tree with debug-friendly settings (no optimization, multiple > codegen units for faster compiles, etc. etc.) even if you are > compiling with --disable-debug. The intended use is in a mozconfig > thusly: > > ac_add_options --enable-optimize > ac_add_options --disable-debug > ac_add_options --enable-rust-debug > > With these options, you get a browser that runs quickly (i.e. no DEBUG > assertions in C++ code), but still lets you debug the Rust code you > might be working on, ideally with faster compile times than you might > get otherwise. --enable-debug implies --enable-debug-rust, of course. > > This configure option is not represented in any of our automation > configs and did require a few strategically placed #ifdef > MOZ_RUST_DEBUG, so it's entirely possible that changes to code on the > C++/Rust boundary will break compiling with this option. Please be > careful. > > If you have ideas on how this config option could be improved, or > ideas on how to improve our developer ergonomics around Rust > compilation generally, please file a bug in Core :: Build Config. > > Thanks, > -Nathan > > -- > You received this message because you are subscribed to the Google Groups > "stylo-team" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/a/ > mozilla.com/d/msgid/stylo-team/CAGepuVJ%2Bcj_zC8M% > 3DkcLKiwk65OH%2BCo59q6AmYc5C%3DFOTqyuvAA%40mail.gmail.com. > _______________________________________________ dev-platform mailing list [email protected] https://lists.mozilla.org/listinfo/dev-platform

