Open Bug 1324048 Opened 8 years ago Updated 2 years ago

move --enable{,-install}-strip to moz.configure

Categories

(Firefox Build System :: General, task)

task

Tracking

(Not tracked)

People

(Reporter: froydnj, Unassigned)

Details

Attachments

(1 file)

This is a straightforward conversion; the only trickery is the bit
around --enable-install-strip.
I think I got this right; checking the config.status variables with various
combinations of options before and after seems to work.  --enable-install-strip
kind of makes my head hurt, though.
Attachment #8819352 - Flags: review?(cmanchester)
Comment on attachment 8819352 [details] [diff] [review]
move --enable{,-install}-strip to moz.configure

Review of attachment 8819352 [details] [diff] [review]:
-----------------------------------------------------------------

::: moz.configure
@@ +150,5 @@
>  
> +
> +option('--enable-strip',
> +       help='Enable stripping of libraries and executables.')
> +set_config('ENABLE_STRIP', depends('--enable-strip')(lambda x: bool(x)))

At first glance it looks like these both want to be `js_option`, because they're mentioned in js/src/old-configure.in, but then neither of the variables are mentioned under js/src, so this seems like the right thing. If that's intended let's add something to the commit message about it.

@@ +155,5 @@
> +
> +
> +option('--enable-install-strip', default=True,
> +       help='Enable stripping of libraries and executables when packaging')
> +set_config('PKG_SKIP_STRIP', depends('--enable-install-strip')(lambda x: not x))

It looks like we have a different default on Windows here due to http://searchfox.org/mozilla-central/rev/f680e72cc6579f90b992b63ca14d923d2afea612/old-configure.in#974
Attachment #8819352 - Flags: review?(cmanchester)
Comment on attachment 8819352 [details] [diff] [review]
move --enable{,-install}-strip to moz.configure

You want this in toolchain.configure, not top-level moz.configure.
(In reply to Mike Hommey [:glandium] from comment #3)
> Comment on attachment 8819352 [details] [diff] [review]
> move --enable{,-install}-strip to moz.configure
> 
> You want this in toolchain.configure, not top-level moz.configure.

Why does this distinction matter?  stripping binaries doesn't really feel like a toolchain-y thing.
Flags: needinfo?(mh+mozilla)
Stripping binaries doesn't happen if you don't have a toolchain. And the option makes no sense when you build with --disable-compile-environment.
Flags: needinfo?(mh+mozilla)
Product: Core → Firefox Build System
Type: defect → task

The bug assignee didn't login in Bugzilla in the last 7 months, so the assignee is being reset.

Assignee: froydnj+bz → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: