RESOLVED FIXED Bug 63318
[GTK] Add more debug options to compilation
https://bugs.webkit.org/show_bug.cgi?id=63318
Summary [GTK] Add more debug options to compilation
Carlos Garcia Campos
Reported 2011-06-24 01:36:34 PDT
Currently --enable-debug option (used by debug builds) include the following: - Add -g flag to compile with debug symbols - Disable compiler optimizations - Disable fast malloc - Compile with deprecated flags - Other debug features: assertions enabled, some debug code, etc. Compiler optimizations and fast malloc can be enabled/disabled when debug is not enabled, but all other options depends directly on --enable-debug. The other day I wanted to debug and assertion, but I didn't want to build with debug symbols, because it's very slow, so I manually disabled debug symbols and I realized it's really useful to build with debug features enabled but without debug symbols. Martin suggested that building with debug symbols, but without debug features like assertions, would be useful too. So I think we could add options to enabled/disable debug symbols and all other debug features.
Attachments
Patch (3.52 KB, patch)
2011-06-24 01:42 PDT, Carlos Garcia Campos
mrobinson: review+
Carlos Garcia Campos
Comment 1 2011-06-24 01:42:36 PDT
Created attachment 98473 [details] Patch The patch adds to options: - --enable-debug-symbols: whether to add -g or not - --enable-debug-features: whether to define NDEBUG macro and compile with deprecated flags or not Both options are unconditionally enabled for debug builds.
Martin Robinson
Comment 2 2011-06-24 06:46:05 PDT
Comment on attachment 98473 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=98473&action=review > configure.ac:1238 > + Enable debug features : $enable_debug_features Should probably keep the (slow) tag here since it adds assertions and disables TCMalloc.
Carlos Garcia Campos
Comment 3 2011-06-24 08:54:27 PDT
Philippe Normand
Comment 4 2011-06-27 01:55:05 PDT
*** Bug 58773 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.