Closed Bug 1256622 Opened 8 years ago Closed 8 years ago

Allow to build spidermonkey from the top-level configure

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(firefox48 fixed)

RESOLVED FIXED
mozilla48
Tracking Status
firefox48 --- fixed

People

(Reporter: glandium, Assigned: glandium)

Details

Attachments

(1 file)

To bootstrap the transition of spidermonkey builds from js/src/configure to using top-level configure, we should allow both to work, and it should actually be possible. The notable difference I would like to be when using top-level configure is that it would read a mozconfig (and expect --enable-project=js there or on the command line).
Comment on attachment 8730937 [details]
MozReview Request: Bug 1256622 - Allow to build spidermonkey from the top-level configure

https://reviewboard.mozilla.org/r/40245/#review36773

Given the typo I found, I'm surprised this worked at all. So I'm holding off granting review in case fixing the typo breaks things. Ping me on IRC if you want me to grant a quick r+ on the fixup once you confirm it works.

::: build/moz.configure/old.configure:103
(Diff revision 1)
>      # as $0, and backslashes there breaks autoconf's detection of the source
>      # directory.
>      old_configure = os.path.abspath(old_configure[0])
> +    if build_project == 'js':
> +        old_configure_dir = os.path.dirname(old_configure)
> +        if not old_configure.endswith('/js/src'):

Shouldn't this be old_configure_dir since `old_configure` points to a file?
Attachment #8730937 - Flags: review?(gps)
That's because I only tested building js, not firefox. facepalm.
Comment on attachment 8730937 [details]
MozReview Request: Bug 1256622 - Allow to build spidermonkey from the top-level configure

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/40245/diff/1-2/
Attachment #8730937 - Flags: review?(gps)
Comment on attachment 8730937 [details]
MozReview Request: Bug 1256622 - Allow to build spidermonkey from the top-level configure

https://reviewboard.mozilla.org/r/40245/#review36785
Attachment #8730937 - Flags: review?(gps) → review+
https://hg.mozilla.org/mozilla-central/rev/94f3363ab6dd
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: