Closed Bug 1703330 Opened 3 years ago Closed 3 years ago

Not all rust code is included in Pernosco session

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: tsmith, Unassigned)

Details

I am seeing optimized out rust code in Pernosco sessions. An example can be found here: https://pernos.co/debug/J0BqJvtp3LFuB_LZJ1MheQ/index.html

The mozconfig used for the builds includes:

export MOZ_DEBUG_SYMBOLS=1
ac_add_options --enable-debug-symbols
ac_add_options --enable-optimize="-O0 -g"

I'm not sure if additional flags are needed to disable optimization of rust code or if flags are not being passed correctly.

export MOZ_DEBUG_SYMBOLS=1
ac_add_options --enable-debug-symbols

There are redundant and are the default

ac_add_options --enable-optimize="-O0 -g"

Try --disable-optimize instead, that should also disable it for rust. There might be a case for configure to try to detect the right thing based on the arbitrary set of flags passed to --enable-optimize, but that might be too much magic.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME

That is a better solution, thank you!

You need to log in before you can comment on or make changes to this bug.