Closed
Bug 636695
Opened 14 years ago
Closed 14 years ago
Make --enable-debug-symbols on by default
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ted, Assigned: Mitch)
Details
(Whiteboard: fixed-in-bs)
Attachments
(1 file)
3.76 KB,
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
There's virtually no downside to having debug symbols for a build, and people almost always want them if they're doing their own build, so we should just enable them by default. We'll still allow disabling them for edge cases, and we'll still allow --enable-debug-symbols="-compiler-options".
Assignee | ||
Comment 1•14 years ago
|
||
This also removes the deprecated --enable-debugger-info-modules option, which raised a warning and only set --enable-debug-symbols anyway.
Assignee: nobody → mitchell.field
Status: NEW → ASSIGNED
Attachment #515071 -
Flags: review?(ted.mielczarek)
Reporter | ||
Comment 2•14 years ago
|
||
Comment on attachment 515071 [details] [diff] [review]
Patch
># HG changeset patch
># Parent 143c8e9082afef42caf66f7916e9bef0fd720cf3
># User Mitchell Field <mitchell.field@live.com.au>
>Bug 636695 - Make --enable-debug-symbols on by default.
>
>diff --git a/configure.in b/configure.in
>--- a/configure.in
>+++ b/configure.in
>-dnl ========================================================
> dnl = Enable generation of debug symbols
> dnl ========================================================
> MOZ_ARG_ENABLE_STRING(debug-symbols,
> [ --enable-debug-symbols[=DBG]
> Enable debugging symbols (using compiler flags DBG)],
I was wondering if we should make this MOZ_ARG_DISABLE, but I guess it's all the same, and people are more likely to use --enable-debug-symbols=foo than --disable.
Attachment #515071 -
Flags: review?(ted.mielczarek) → review+
Comment 3•14 years ago
|
||
This patch has a downside: --enable-debug-symbols is not passed down to nsprpub's configure.
Reporter | ||
Comment 4•14 years ago
|
||
Hrm. Good point. We should fix that.
Assignee | ||
Comment 5•14 years ago
|
||
Comment on attachment 515071 [details] [diff] [review]
Patch
> if test -n "$MOZ_DEBUG" -o -n "$MOZ_DEBUG_SYMBOLS"; then
> AC_DEFINE(MOZ_DEBUG_SYMBOLS)
> export MOZ_DEBUG_SYMBOLS
> fi
It's exported for nsprpub/configure and resulted in PDBs in objdir/nsprpub here.
I'd pushed it already:
http://hg.mozilla.org/projects/build-system/rev/f00d8a38ac19
Assignee | ||
Updated•14 years ago
|
Whiteboard: fixed-in-bs
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•