Commit Graph

907 Commits

Author SHA1 Message Date
Mike Hommey
b065844d33 Bug 1515550 - Search all MSVC products for the compiler components. r=ted
vswhere only searches in Community, Professional and Enterprise, but one can
also install BuildTools only, which has a different product name.

Differential Revision: https://phabricator.services.mozilla.com/D15056

--HG--
extra : moz-landing-system : lando
2018-12-20 21:53:14 +00:00
Mike Hommey
1c2fec65c2 Bug 1515504 - Fix the path we check version.txt/version_display.txt under in non-browser projects. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D15027

--HG--
extra : moz-landing-system : lando
2018-12-20 03:52:29 +00:00
Mike Hommey
298b2de7c1 Bug 1515604 - Fix artifact builds after bug 1513798. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D15079

--HG--
extra : moz-landing-system : lando
2018-12-20 18:50:04 +00:00
Mike Hommey
d402239dae Bug 1515257 - Move --with-system-libvpx to python configure. r=firefox-build-system-reviewers,ted
Depends on D14951

Differential Revision: https://phabricator.services.mozilla.com/D14952

--HG--
extra : moz-landing-system : lando
2018-12-19 11:39:08 +00:00
Mike Hommey
dd9123bf89 Bug 1515257 - Add a check_symbol function that checks whether a symbol can be linked against. r=firefox-build-system-reviewers,ted
Depends on D14950

Differential Revision: https://phabricator.services.mozilla.com/D14951

--HG--
extra : moz-landing-system : lando
2018-12-19 11:23:41 +00:00
Mike Hommey
1b2eece461 Bug 1515257 - Add a try_run method more generic than try_compile. r=firefox-build-system-reviewers,ted
It will be useful to run tests like try_compile, with different flags and different
kinds of sources.

Depends on D14949

Differential Revision: https://phabricator.services.mozilla.com/D14950

--HG--
extra : moz-landing-system : lando
2018-12-19 22:40:38 +00:00
Mike Hommey
bcdb05188c Bug 1515257 - Add onerror argument to check_header(). r=firefox-build-system-reviewers,ted
Depends on D14948

Differential Revision: https://phabricator.services.mozilla.com/D14949

--HG--
extra : moz-landing-system : lando
2018-12-19 11:20:26 +00:00
Tom Ritter
c014980a9a Bug 1485016 - Enable CFG for Windows builds. r=froydnj 2018-12-07 10:54:41 -06:00
Dorel Luca
176695a3b3 Backed out changeset 7e548edaf318 (bug 1485016) for build bustage 2018-12-19 10:39:10 +02:00
Tom Ritter
e7f646df03 Bug 1485016 - Enable CFG for Windows builds r=froydnj 2018-12-07 10:54:41 -06:00
Brindusan Cristian
13788edbab Merge inbound to mozilla-central. a=merge 2018-12-18 11:50:37 +02:00
Nick Alexander
a79bace97e Bug 1498406 - Part 1: Don't check for javac, javah, jar. r=froydnj
The build system no longer invokes these directly: they're all fetched
and invoked by Gradle and its plugins.

Differential Revision: https://phabricator.services.mozilla.com/D14287

--HG--
extra : moz-landing-system : lando
2018-12-17 23:04:14 +00:00
Mike Hommey
7f87f1f891 Bug 1513798 - Automatically set -syslibroot for OSX cross-builds from configure. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D14384
2018-12-18 10:50:16 +09:00
Mike Hommey
e580fcbf31 Bug 1513798 - Expose the linker kind to moz.build. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D14383
2018-12-18 10:50:15 +09:00
Mike Hommey
6d3046658e Bug 1513798 - Move --with-macos-{sdk,private-frameworks} to python configure. r=nalexander
Because we now set the sysroot include flags early in python configure,
we don't need to set CPP/CXXCPP. We also skip the explicit compiler test
because more complete tests follow anyways.

Differential Revision: https://phabricator.services.mozilla.com/D14380
2018-12-18 10:50:12 +09:00
Mike Hommey
0edc1f6452 Bug 1513798 - Simplify the handling of --enable-macos-target. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D14379
2018-12-18 10:50:11 +09:00
Mike Hommey
98cdb52421 Bug 1513798 - Automatically set TOOLCHAIN_PREFIX when cross-compiling for OSX. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D14377
2018-12-18 10:50:09 +09:00
Emilio Cobos Álvarez
879d99e739 Bug 1513009 - Deny Rust warnings on automation. r=ted
Summary:
I've chosen linux64-debug since it's the most visible build I usually do, but I
could do another build task or something, or use the static analysis builds, or
what not. Just let me know if there's a better way to do this.

Caveat: This might make updating Rust toolchains a bit more painful. I think
this is better and we should just deal with warnings before updating toolchains,
but I don't know if there'd be strong opposition to that.

Note that this does _not_ affect third-party code since Cargo passes
`--cap-lint warn` automatically for those.

Proof that it works:

 * https://treeherder.mozilla.org/#/jobs?repo=try&revision=4ad1e4e1392f71b574cff683e90c7b13bf8781d1
 * https://treeherder.mozilla.org/#/jobs?repo=try&revision=57604f92624bbe49037eee87c56fdb6bf2b5017d

Reviewers: #firefox-build-system-reviewers, ted

Reviewed By: #firefox-build-system-reviewers, ted

Subscribers: reviewbot, glandium, ted

Bug #: 1513009

Differential Revision: https://phabricator.services.mozilla.com/D14083
2018-12-14 23:35:47 +01:00
Mike Hommey
c2b01ab3f1 Bug 1514089 - Move fxc and wine detection to toolkit/moz.configure. r=froydnj
They are not necessary to build e.g. standalone spidermonkey.

Differential Revision: https://phabricator.services.mozilla.com/D14513

--HG--
extra : moz-landing-system : lando
2018-12-14 14:56:04 +00:00
Gurzau Raul
3189fe85e8 Backed out changeset 8e348821b49f (bug 1513009) due to build compile failure on a CLOSED TREE 2018-12-14 01:56:43 +02:00
Emilio Cobos Álvarez
d29a39cdfd Bug 1513009 - Deny Rust warnings on automation. r=firefox-build-system-reviewers,ted
I've chosen linux64-debug since it's the most visible build I usually do, but I
could do another build task or something, or use the static analysis builds, or
what not. Just let me know if there's a better way to do this.

Caveat: This might make updating Rust toolchains a bit more painful. I think
this is better and we should just deal with warnings before updating toolchains,
but I don't know if there'd be strong opposition to that.

Note that this does _not_ affect third-party code since Cargo passes
`--cap-lint warn` automatically for those.

Proof that it works:

 * https://treeherder.mozilla.org/#/jobs?repo=try&revision=4ad1e4e1392f71b574cff683e90c7b13bf8781d1
 * https://treeherder.mozilla.org/#/jobs?repo=try&revision=57604f92624bbe49037eee87c56fdb6bf2b5017d

Differential Revision: https://phabricator.services.mozilla.com/D14083

--HG--
extra : moz-landing-system : lando
2018-12-13 19:17:31 +00:00
Thomas Daede
427d23f3d7 Bug 1512462 - Only use nasm when explicitly requested. r=firefox-build-system-reviewers,mshal
This is needed because ffvpx does not build with nasm on win64.

Differential Revision: https://phabricator.services.mozilla.com/D13966

--HG--
extra : moz-landing-system : lando
2018-12-13 15:40:17 +00:00
Mike Hommey
ab48d17e1a Bug 1513134 - Detect unnecessary --help dependencies. r=firefox-build-system-reviewers,gps
Depends on D14125

Differential Revision: https://phabricator.services.mozilla.com/D14126

--HG--
extra : moz-landing-system : lando
2018-12-11 19:34:28 +00:00
Chris Peterson
fe4ed2b8bb Bug 1508927 - Enable clang's -Wbitfield-enum-conversion warnings. r=glandium
https://clang.llvm.org/docs/DiagnosticsReference.html#wbitfield-enum-conversion

This clang warning caught a real layout bug related to implicitly truncated enums in the table border style code (bug 1485179):

layout/tables/nsTableFrame.cpp:5318:14 [-Wbitfield-enum-conversion] bit-field 'ownerElem' is not wide enough to store all enumerators of 'BCBorderOwner'
layout/tables/nsTableFrame.cpp:5358:16 [-Wbitfield-enum-conversion] bit-field 'ownerElem' is not wide enough to store all enumerators of 'BCBorderOwner'
layout/tables/nsTableFrame.cpp:5374:18 [-Wbitfield-enum-conversion] bit-field 'subElem' is not wide enough to store all enumerators of 'BCBorderOwner'
layout/tables/nsTableFrame.cpp:5385:18 [-Wbitfield-enum-conversion] bit-field 'subElem' is not wide enough to store all enumerators of 'BCBorderOwner'

Also update the comment linking to clang and gcc's warning documentation.

Differential Revision: https://phabricator.services.mozilla.com/D12513

--HG--
extra : moz-landing-system : lando
2018-11-27 02:01:48 +00:00
Gian-Carlo Pascutto
4a38adb0a1 Bug 1503589 - Enable strong stack protector by default. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D11522

--HG--
extra : moz-landing-system : lando
2018-11-30 07:45:23 +00:00
Thomas Daede
dbd2f83eeb Bug 1508419 - Gracefully fail if nasm doesn't print version. r=firefox-build-system-reviewers,mshal
This is required on Mac, where there is a dummy nasm executable
that prints an error if the real nasm isn't found.

Differential Revision: https://phabricator.services.mozilla.com/D12371

--HG--
extra : moz-landing-system : lando
2018-11-26 16:13:48 +00:00
Nathan Froyd
f77d1d7a18 Bug 1503366 - part 2 - enable WIN64_* for cargo in aarch64 cross-compiles; r=chmanchester
We need these bits for generic cross-compiles, so make sure they are
enabled on both x86 and aarch64.
2018-11-20 19:32:47 -05:00
Mike Hommey
3957f7d987 Backout changeset 88ba9f723934 (bug 1502457) for causing bug 1507838 and bug 1508836 2018-11-21 09:05:41 +09:00
Mike Hommey
56bbc9b698 Bug 1502457 - Derive the default update channel from the application display version. r=nalexander
Depends on D11986

Differential Revision: https://phabricator.services.mozilla.com/D11987

--HG--
extra : source : 9174dadf38b0d1763cd1d0591d4333c68b5480a6
2018-11-16 01:16:59 +00:00
Mike Hommey
7e51528881 Bug 1502457 - Move MOZILLA_OFFICIAL to init.configure. r=nalexander
Depends on D11985

Differential Revision: https://phabricator.services.mozilla.com/D11986

--HG--
extra : source : 2bc4c0bfa299a08006f17afda472705a52d7ec6d
2018-11-16 01:16:31 +00:00
Mike Hommey
1ac822e820 Bug 1502457 - Move js_option around to make it available earlier. r=nalexander
Depends on D11984

Differential Revision: https://phabricator.services.mozilla.com/D11985

--HG--
extra : source : 1442604ea2668c096163776381579774c2114991
2018-11-16 01:15:58 +00:00
Mike Hommey
c8cb111f94 Bug 1502457 - Move MOZ_APP_VERSION{,_DISPLAY} to python configure. r=nalexander
Depends on D11983

Differential Revision: https://phabricator.services.mozilla.com/D11984

--HG--
extra : source : 1cf7694c8aa247c169c93d279bd16201103b75a8
2018-11-16 01:15:35 +00:00
Mike Hommey
4a542b98af Bug 1502457 - Move FIREFOX_VERSION to python configure. r=nalexander
Depends on D11982

Differential Revision: https://phabricator.services.mozilla.com/D11983

--HG--
extra : source : a73cfbabdd47368eee9682c24de75cbaf1564dde
2018-11-16 01:14:46 +00:00
shindli
4756350be2 Backed out 6 changesets (bug 1502457) for causing Mn mozprocess automation failures in '/Users/cltbld/tasks/task_1542517470/build/venv/bin/python
Backed out changeset 9174dadf38b0 (bug 1502457)
Backed out changeset 2bc4c0bfa299 (bug 1502457)
Backed out changeset 1442604ea266 (bug 1502457)
Backed out changeset 1cf7694c8aa2 (bug 1502457)
Backed out changeset a73cfbabdd47 (bug 1502457)
Backed out changeset 2c2b09264a82 (bug 1502457)
2018-11-18 10:24:11 +02:00
Thomas Daede
9735214d9a Bug 1501796 - Use nasm when yasm is requested. r=firefox-build-system-reviewers,mshal
Includes changes to support nasm's stricter include paths.

Supports falling back to yasm if nasm is missing.

Differential Revision: https://phabricator.services.mozilla.com/D9972

--HG--
extra : moz-landing-system : lando
2018-11-16 01:20:58 +00:00
Mike Hommey
ecfd914e53 Bug 1502457 - Derive the default update channel from the application display version. r=nalexander
Depends on D11986

Differential Revision: https://phabricator.services.mozilla.com/D11987

--HG--
extra : moz-landing-system : lando
2018-11-16 01:16:59 +00:00
Mike Hommey
a9d88a2903 Bug 1502457 - Move MOZILLA_OFFICIAL to init.configure. r=nalexander
Depends on D11985

Differential Revision: https://phabricator.services.mozilla.com/D11986

--HG--
extra : moz-landing-system : lando
2018-11-16 01:16:31 +00:00
Mike Hommey
f8aec6c458 Bug 1502457 - Move js_option around to make it available earlier. r=nalexander
Depends on D11984

Differential Revision: https://phabricator.services.mozilla.com/D11985

--HG--
extra : moz-landing-system : lando
2018-11-16 01:15:58 +00:00
Mike Hommey
9cc79e2096 Bug 1502457 - Move MOZ_APP_VERSION{,_DISPLAY} to python configure. r=nalexander
Depends on D11983

Differential Revision: https://phabricator.services.mozilla.com/D11984

--HG--
extra : moz-landing-system : lando
2018-11-16 01:15:35 +00:00
Mike Hommey
3bc70df446 Bug 1502457 - Move FIREFOX_VERSION to python configure. r=nalexander
Depends on D11982

Differential Revision: https://phabricator.services.mozilla.com/D11983

--HG--
extra : moz-landing-system : lando
2018-11-16 01:14:46 +00:00
Narcis Beleuzu
df50f67e20 Backed out 6 changesets (bug 1502457) for build bustages. CLOSED TREE
Backed out changeset febdb867785a (bug 1502457)
Backed out changeset 7ea52c602445 (bug 1502457)
Backed out changeset 73bb6a74cad0 (bug 1502457)
Backed out changeset b172bda6e983 (bug 1502457)
Backed out changeset 0e283ddc6c3b (bug 1502457)
Backed out changeset 638fa0251123 (bug 1502457)
2018-11-16 02:13:57 +02:00
Mike Hommey
6454082810 Bug 1502457 - Derive the default update channel from the application display version. r=nalexander
Depends on D11986

Differential Revision: https://phabricator.services.mozilla.com/D11987

--HG--
extra : moz-landing-system : lando
2018-11-15 23:21:25 +00:00
Mike Hommey
92923efcf1 Bug 1502457 - Move MOZILLA_OFFICIAL to init.configure. r=nalexander
Depends on D11985

Differential Revision: https://phabricator.services.mozilla.com/D11986

--HG--
extra : moz-landing-system : lando
2018-11-15 23:21:48 +00:00
Mike Hommey
26513c0db2 Bug 1502457 - Move js_option around to make it available earlier. r=nalexander
Depends on D11984

Differential Revision: https://phabricator.services.mozilla.com/D11985

--HG--
extra : moz-landing-system : lando
2018-11-15 23:22:01 +00:00
Mike Hommey
b1fdc6b2a4 Bug 1502457 - Move MOZ_APP_VERSION{,_DISPLAY} to python configure. r=nalexander
Depends on D11983

Differential Revision: https://phabricator.services.mozilla.com/D11984

--HG--
extra : moz-landing-system : lando
2018-11-15 23:22:24 +00:00
Mike Hommey
f4802de169 Bug 1502457 - Move FIREFOX_VERSION to python configure. r=nalexander
Depends on D11982

Differential Revision: https://phabricator.services.mozilla.com/D11983

--HG--
extra : moz-landing-system : lando
2018-11-15 23:23:53 +00:00
Cosmin Sabou
df8f8b9ca2 Backed out changeset 40d197664391 (bug 1503589) for causing windows MinGW build bustages. CLOSED TREE 2018-11-15 12:32:54 +02:00
Gian-Carlo Pascutto
17e73a2dcc Bug 1503589 - Enable strong stack protector by default. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D11522

--HG--
extra : moz-landing-system : lando
2018-11-13 05:04:45 +00:00
Thomas Daede
ede80683a6 Bug 1501796 - Check for nasm in configure script. r=firefox-build-system-reviewers,mshal
Differential Revision: https://phabricator.services.mozilla.com/D9854

--HG--
extra : moz-landing-system : lando
2018-11-07 00:26:15 +00:00
Mike Hommey
03a178d7f6 Bug 1501218 - Enable wayland support with --enable-default-toolkit=cairo-gtk3. r=mshal
--enable-default-toolkit=cairo-gtk3-wayland is left to _force_ wayland
support being built in, while --enable-default-toolkit=cairo-gtk3 still
allows to build against a Gtk+ version that doesn't support wayland.

Differential Revision: https://phabricator.services.mozilla.com/D11433

--HG--
extra : moz-landing-system : lando
2018-11-14 22:50:43 +00:00