Commit Graph

510 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
78ecaad89c Bug 1638574 - Allow to use widl when cross-compiling clang-cl builds. r=glandium
This avoids having to have clang-cl.exe and ml64.exe in the path.

This requires a WIDL patch[1] and one other tweak, but it's working
other than that.

While at it, allow to pass extra flags to midl / widl. This is useful to
test with a local widl for example, to pass the right include paths.

[1]: https://www.winehq.org/pipermail/wine-devel/2020-May/166368.html

Differential Revision: https://phabricator.services.mozilla.com/D75680
2020-05-22 01:16:59 +00:00
Cameron McCormack
0d5684a3a8 Bug 1639419 - Enable frame tree dumps whenever the layout debugger is enabled. r=TYLin,glandium
Differential Revision: https://phabricator.services.mozilla.com/D76076
2020-05-20 23:44:49 +00:00
Corentin Arnould
1f8a5ee33b Bug 1638830 - Remove MOZ_WEBRTC_HARDWARE_AEC_NS and its related code r=padenot
--enable-hardware-aec-ns option does nothing so it is deleted too.
removed `hardware_aec_ns` from gyp vars since it is never used

Differential Revision: https://phabricator.services.mozilla.com/D75798
2020-05-20 13:22:40 +00:00
Chris AtLee
b045fb21c2 Bug 1557741: Stop building geckodriver as part of the build r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D72282
2020-05-14 20:47:13 +00:00
Lina Cambridge
466b3ca6f9 Bug 1638557 - Remove the MOZ_NEW_WEBEXT_STORAGE build flag. r=markh
Now that we've landed all the pieces for Rust `storage.sync`, and
intend to ship it for everyone in 78, we don't need to hide it behind a
build flag. Setting the `webextensions.storage.sync.kinto` pref to
false toggles the new Rust backend at runtime.

Differential Revision: https://phabricator.services.mozilla.com/D75872
2020-05-19 00:48:03 +00:00
Mike Hommey
28de21d935 Bug 1638193 - Remove build system support for iOS. r=nalexander
iOS support for Gecko has not been tested in years and is most probably
out of date. The build system part of it, specifically the checks in
build/autoconf/ios.m4, are not trivial to port to python configure, and
they prevent other things from moving to python configure (because some
of them change value when MOZ_IOS is set).

The code is left alone, although it could probably be stripped off as
well, but I'll leave that as an exercise for someone else.

Differential Revision: https://phabricator.services.mozilla.com/D75463
2020-05-15 03:56:16 +00:00
Mike Hommey
696cb0cc9c Bug 1625696 - Update winchecksec and build/use it natively for Linux. r=dmajor
Now that upstream winchecksec builds and works natively on Linux, use
that. That should solve the random crashes under Wine. If random crashes
still happen, it will be easier to debug anyways.
We bump to the last version that doesn't use vcpkg because vcpkg makes
things more difficult.

Differential Revision: https://phabricator.services.mozilla.com/D73405
2020-05-07 00:34:36 +00:00
Greg V
e65e9412b0 Bug 1634205 - Support Gecko Profiler and Base Profiler on FreeBSD r=mstange
- supports amd64 and arm64 (aarch64)
- uses LUL for stack walking

Differential Revision: https://phabricator.services.mozilla.com/D73162
2020-05-06 17:44:19 +00:00
Andreea Pavel
81629d9476 Backed out changeset fc265b3a728e (bug 1625696) for causing bug 1634877 and bug 1634916 2020-05-03 05:22:37 +03:00
Mike Hommey
137394d5a2 Bug 1625696 - Update winchecksec and build/use it natively for Linux. r=dmajor
Now that upstream winchecksec builds and works natively on Linux, use
that. That should solve the random crashes under Wine. If random crashes
still happen, it will be easier to debug anyways.
We bump to the last version that doesn't use vcpkg because vcpkg makes
things more difficult.

Differential Revision: https://phabricator.services.mozilla.com/D73405
2020-05-02 06:19:25 +00:00
Lina Cambridge
e6e665546f Bug 1626506 - Vendor the webext_storage component. r=markh
Hooray, our first Application Services Rust component! This is a
mechanical run of `mach vendor rust`, split out into its own commit
to make reviewing the Firefox bindings easier.

Differential Revision: https://phabricator.services.mozilla.com/D71895
2020-04-27 05:40:52 +00:00
Mihai Alexandru Michis
807ec47bae Backed out 2 changesets (bug 1626506) for causing bustages.
CLOSED TREE

Backed out changeset f3deedfe235d (bug 1626506)
Backed out changeset 00b40d247500 (bug 1626506)
2020-04-27 08:11:19 +03:00
Lina Cambridge
a42e765155 Bug 1626506 - Vendor the webext_storage component. r=markh
Hooray, our first Application Services Rust component! This is a
mechanical run of `mach vendor rust`, split out into its own commit
to make reviewing the Firefox bindings easier.

Differential Revision: https://phabricator.services.mozilla.com/D71895
2020-04-27 02:59:45 +00:00
shravanrn@gmail.com
e0273c024b Bug 1626174 - Enable use of wasm sandboxed libOgg in the OggDemuxer in linux, mac, try servers r=padenot,erahm,dmajor,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D70652
2020-04-22 11:16:10 +00:00
Brindusan Cristian
c4fd863aaa Backed out 2 changesets (bug 1626174, bug 1625876) for build bustages at LibrarySandboxPreload.cpp and OggDemuxer.cpp. CLOSED TREE
Backed out changeset 40fea0f3ab6c (bug 1626174)
Backed out changeset a3117fce845d (bug 1625876)
2020-04-21 19:29:02 +03:00
shravanrn@gmail.com
f0399f4146 Bug 1626174 - Enable use of wasm sandboxed libOgg in the OggDemuxer in linux, mac, try servers r=padenot,erahm,dmajor,firefox-build-system-reviewers
Depends on D68764

Differential Revision: https://phabricator.services.mozilla.com/D70652
2020-04-21 15:30:37 +00:00
Mike Hommey
eb30fe2129 Bug 1628153 - Require libvpx >= 1.8.0. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D70133

--HG--
extra : moz-landing-system : lando
2020-04-08 12:01:53 +00:00
Jan-Erik Rediger
311c2d9ea7 Bug 1623300 - Replace fogotype with the actual FOG crate now. r=chutten
This also upgrades the vendored Glean version, which thanks to our
upstream work doesn't change anything else (except one small
Mozilla-developed dependency)

It's still feature-gated to nightly.
In C++ there's now a `MOZ_GLEAN` define.
For Rust it's behind the `glean` feature (enabled on nightly only).
The `fog` crate is empty, so no Glean is actually instantiated.

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

--HG--
rename : third_party/rust/glean-preview/src/metrics/mod.rs => toolkit/components/glean/src/lib.rs
extra : moz-landing-system : lando
2020-03-31 08:24:40 +00:00
Razvan Maries
b243785ac5 Backed out 6 changesets (bug 1623300, bug 1623306) for build bustages. CLOSED TREE
Backed out changeset 5267e6e2015d (bug 1623300)
Backed out changeset 45fadf903140 (bug 1623300)
Backed out changeset 46949083a8c8 (bug 1623306)
Backed out changeset cbcb3bb23090 (bug 1623300)
Backed out changeset c04dbe8dd337 (bug 1623300)
Backed out changeset d2673451da54 (bug 1623300)

--HG--
rename : toolkit/components/glean/src/lib.rs => third_party/rust/glean-preview/src/metrics/mod.rs
2020-03-31 11:19:31 +03:00
Jan-Erik Rediger
1a47da3ae3 Bug 1623300 - Replace fogotype with the actual FOG crate now. r=chutten
This also upgrades the vendored Glean version, which thanks to our
upstream work doesn't change anything else (except one small
Mozilla-developed dependency)

It's still feature-gated to nightly.
In C++ there's now a `MOZ_GLEAN` define.
For Rust it's behind the `glean` feature (enabled on nightly only).
The `fog` crate is empty, so no Glean is actually instantiated.

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

--HG--
rename : third_party/rust/glean-preview/src/metrics/mod.rs => toolkit/components/glean/src/lib.rs
extra : moz-landing-system : lando
2020-03-30 19:09:43 +00:00
Mike Hommey
32bf570594 Bug 1618782 - Use winchecksec on Windows cross builds too. r=rstewart
Differential Revision: https://phabricator.services.mozilla.com/D68162

--HG--
extra : moz-landing-system : lando
2020-03-27 10:41:06 +00:00
Mike Hommey
e25a8bf02e Bug 1450088 - Use Winchecksec instead of Binscope. r=dmajor
While almost rewriting autobinscope.py entirely (and renaming it),
switch to python 3.

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

--HG--
rename : build/win32/autobinscope.py => build/win32/autowinchecksec.py
extra : moz-landing-system : lando
2020-03-26 22:13:14 +00:00
Michael Forney
48e9b9c824 Bug 1615713 - Update breakpad to upstream revision 5bba75bfd6ec386b8e3af0b91332388a378135bf r=gsvelto
This includes several fixes required to build against musl libc.

Conflicts were resolved in 00-arm-exidx-rollup.patch and
10-json-upload.patch. 08-dont-add-sp-to-clobber-list.patch was
applied upstream and is no longer needed. The others applied cleanly.

breakpad_getcontext.S is now built conditionally based upon the
available of getcontext() from libc, rather than only on Android.
The profiler was updated to reflect this change.

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

--HG--
rename : toolkit/crashreporter/breakpad-patches/09-gnu-alt-form-minimal-support.patch => toolkit/crashreporter/breakpad-patches/08-gnu-alt-form-minimal-support.patch
rename : toolkit/crashreporter/breakpad-patches/10-json-upload.patch => toolkit/crashreporter/breakpad-patches/09-json-upload.patch
rename : toolkit/crashreporter/google-breakpad/src/common/android/breakpad_getcontext.S => toolkit/crashreporter/google-breakpad/src/common/linux/breakpad_getcontext.S
rename : toolkit/crashreporter/google-breakpad/src/common/android/breakpad_getcontext_unittest.cc => toolkit/crashreporter/google-breakpad/src/common/linux/breakpad_getcontext_unittest.cc
extra : moz-landing-system : lando
2020-03-19 22:52:26 +00:00
Michael Froman
55663c4b8d Bug 1622356 - change minimum supported linux nasm to 2.14.02. r=froydnj
Dav1d 0.6.0 requires nasm 2.14.02.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 16:53:47 +00:00
Mike Hommey
646579d57d Bug 1618781 - Use the taskcluster artifact for pdbstr on both Windows native and cross builds. r=froydnj
And make it an explicit dependency of the build system.

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

--HG--
extra : moz-landing-system : lando
2020-03-18 04:21:18 +00:00
Ciure Andrei
19d8351b5f Backed out 2 changesets (bug 1618781) for toolchain bustages CLOSED TREE
Backed out changeset 83026834b242 (bug 1618781)
Backed out changeset ac168e956e3a (bug 1618781)
2020-03-18 05:32:00 +02:00
Mike Hommey
570134e4a8 Bug 1618781 - Use the taskcluster artifact for pdbstr on both Windows native and cross builds. r=froydnj
And make it an explicit dependency of the build system.

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

--HG--
extra : moz-landing-system : lando
2020-03-17 14:01:46 +00:00
Molly Howell
1ce92ca69d Bug 1602463 Part 1 - Add a build flag to disable the default browser agent. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D61888

--HG--
extra : moz-landing-system : lando
2020-03-16 18:32:51 +00:00
Mihai Alexandru Michis
12c2ba4b56 Backed out 5 changesets (bug 1602463) for causing diffoscope failures.
CLOSED TREE

Backed out changeset ff565862e785 (bug 1602463)
Backed out changeset 2583a2703658 (bug 1602463)
Backed out changeset 8f3de97c5d50 (bug 1602463)
Backed out changeset be11972a8149 (bug 1602463)
Backed out changeset 5a6058d8266c (bug 1602463)
2020-03-16 20:29:20 +02:00
Molly Howell
62c6a2b1df Bug 1602463 Part 1 - Add a build flag to disable the default browser agent. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D61888

--HG--
extra : moz-landing-system : lando
2020-03-16 16:42:14 +00:00
Adam Gashlin
b7a227398f Bug 1515451 Part 2 - Build update agent in-tree r=firefox-build-system-reviewers,mhowell,rstewart
The configure option --enable-update-agent is left disabled by default.

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

--HG--
extra : moz-landing-system : lando
2020-03-11 22:32:26 +00:00
Mihai Alexandru Michis
e1e250413b Backed out 3 changesets (bug 1515451) for causing sm failures in components/updateagent/Cargo.toml
CLOSED TREE

Backed out changeset 85ea1d36da66 (bug 1515451)
Backed out changeset 779bc1fa07ae (bug 1515451)
Backed out changeset 0c6771b60b76 (bug 1515451)
2020-03-11 22:03:19 +02:00
Adam Gashlin
3b0b84fbee Bug 1515451 Part 2 - Build update agent in-tree r=firefox-build-system-reviewers,mhowell,rstewart
The configure option --enable-update-agent is left disabled by default.

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

--HG--
extra : moz-landing-system : lando
2020-03-10 17:41:45 +00:00
Mike Hommey
5e3d7e3257 Bug 1619867 - Look for .exe-suffixed midl and rc from configure. r=dmajor
With this and all the previous changes, the necessary mozconfig for
local cross-builds only contains DIA_SDK_PATH, WINDOWSSDKDIR and
--target.

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

--HG--
extra : moz-landing-system : lando
2020-03-04 17:13:24 +00:00
Mike Hommey
d747b65211 Bug 1617794 - Wrap Windows tools with Wine on cross builds. r=dmajor
Windows programs run via Wine don't like Unix absolute paths (they look
like command line arguments), so we need to use relative paths.

Mingw already run fxc2 via wine, but for some reason it doesn't care
about the Unix absolute paths. genshaders does need some adjustements to
run properly with the real fxc.

Now, on actual Windows, because the temporary directory where
tempfile.NamedTemporaryFile creates files by default is not necessarily
on the same drive as where the command runs from, a relative path can't
be constructed. So we also force the temporary file to be created in the
current (obj) directory.

There is no similar concern for other files because we only go from
objdir to srcdir, and the build system already doesn't support both
being on a separate drive.

While here, flush stdout when the genshared script writes to it, so that
the messages are printed out immediately rather than randomly, later,
after output from subprocesses.

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

--HG--
extra : moz-landing-system : lando
2020-02-27 04:42:57 +00:00
Mike Hommey
b543758acf Bug 1614152 - Simplify DUMP_SYMS check, and make it optional. r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D64282

--HG--
extra : moz-landing-system : lando
2020-02-26 20:51:04 +00:00
Mike Hommey
f9434a7b48 Bug 1618068 - Remove clang-cl < 8 specific code from python configure. r=dmajor
clang-cl versions older than 8 are already rejected in
toolchain.configure as of bug 1550868.

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

--HG--
extra : moz-landing-system : lando
2020-02-26 20:51:04 +00:00
Dana Keeler
3878240938 bug 1603834 - let cert_storage and intermediate preloading ride the trains r=jcj,froydnj
(intermediate preloading is still disabled on mobile for now)

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

--HG--
extra : moz-landing-system : lando
2020-02-22 00:54:32 +00:00
Tom Prince
4396de38b8 Bug 1527313: [mozharness] Checkout l10n-central next to mozilla-central; r=firefox-build-system-reviewers,mshal
Differential Revision: https://phabricator.services.mozilla.com/D62410

--HG--
extra : moz-landing-system : lando
2020-02-19 22:20:11 +00:00
Nathan Froyd
9871aad8ea Bug 1610149 - let x86-64 Mac enable wasm sandboxing; r=firefox-build-system-reviewers,rstewart
Everything that we need is supported on Mac, too.

Depends on D62799

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

--HG--
extra : moz-landing-system : lando
2020-02-13 23:40:13 +00:00
Thinker Li
dbada9842d Bug 1609881 - Part 3: build the fork server for Linux & FreeBSD. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D61255

--HG--
extra : moz-landing-system : lando
2020-02-14 16:50:33 +00:00
Coroiu Cristina
9526bf7b4d Backed out 3 changesets (bug 1610149) for instr bustage on a CLOSED TREE
Backed out changeset b815d0a94385 (bug 1610149)
Backed out changeset dfca4a56fa51 (bug 1610149)
Backed out changeset 0568028bb4dd (bug 1610149)
2020-02-14 01:14:05 +02:00
Nathan Froyd
8f585aba02 Bug 1610149 - let x86-64 Mac enable wasm sandboxing; r=firefox-build-system-reviewers,rstewart
Everything that we need is supported on Mac, too.

Depends on D62799

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

--HG--
extra : moz-landing-system : lando
2020-02-13 21:17:18 +00:00
Nathan Froyd
3f2d9684cb Bug 1610986 - define ldflags for lucetc in configure; r=firefox-build-system-reviewers,rstewart
These vary per-target, and it's nicer to define them here rather than
define them somewhere in rules.mk.

Depends on D62796

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

--HG--
extra : moz-landing-system : lando
2020-02-13 21:20:11 +00:00
Nathan Froyd
9df9f90a4a Bug 1610986 - add a specific target for lucet compilation; r=firefox-build-system-reviewers,rstewart
We're going to need this for handling Mac cross compiles correctly.

Depends on D62795

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

--HG--
extra : moz-landing-system : lando
2020-02-13 21:20:34 +00:00
Andreea Pavel
3dfe514f42 Backed out changeset 84184c894e33 (bug 1609881) for multiple failures e.g assertion failure StaticPrefList_layers.h on a CLOSED TREE 2020-02-12 21:05:21 +02:00
Thinker Li
8753b31c60 Bug 1609881 - Part 2: build the fork server for Linux & FreeBSD. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D61255

--HG--
extra : moz-landing-system : lando
2020-02-12 16:57:20 +00:00
Shane Caraveo
97562b2ac6 Bug 1602840 add build switch for sideloading addons r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D57660

--HG--
extra : moz-landing-system : lando
2020-02-04 23:27:10 +00:00
Ricky Stewart
ffbd93e65a Bug 1611002 - configure/test_toolkit_moz_configure.py supports Python 3 r=firefox-build-system-reviewers,mshal
Differential Revision: https://phabricator.services.mozilla.com/D60777

--HG--
extra : moz-landing-system : lando
2020-01-30 10:34:51 +00:00
Razvan Maries
9ad088b041 Backed out 4 changesets (bug 1602840, bug 1603227) for xpcshell perma fails on test_registry.js. CLOSED TREE
Backed out changeset 02d52e2e7d62 (bug 1603227)
Backed out changeset faa15c6fed65 (bug 1602840)
Backed out changeset bc6122544852 (bug 1602840)
Backed out changeset 5ad4c0f6c5db (bug 1602840)
2020-01-20 22:10:42 +02:00