Граф коммитов

815 Коммитов

Автор SHA1 Сообщение Дата
Noemi Erli 21d20eb1c0 Backed out 3 changesets (bug 1747145, bug 1810627) for causing mochitest failures in /test_webassembly_compile.html
Backed out changeset b49ff59bb2cd (bug 1810627)
Backed out changeset 3be300874393 (bug 1747145)
Backed out changeset 2cd1b61ddd24 (bug 1747145)
2023-01-18 13:04:08 +02:00
Mike Hommey a5f8d071a0 Bug 1810627 - Allow to build without a wasi sysroot. r=firefox-build-system-reviewers,ahochheiden
On e.g. Debian unstable, the wasi SDK is available via packages in a
multiarch fashion, which doesn't require the --sysroot flag being passed
to the compiler.

Differential Revision: https://phabricator.services.mozilla.com/D166978
2023-01-18 08:07:24 +00:00
Mike Hommey f369efa9a4 Bug 1747145 - Add more configure checks for the wasm toolchain setup. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D166977
2023-01-18 08:07:24 +00:00
Norisz Fay c1fa36ebc4 Backed out 2 changesets (bug 1810627, bug 1747145) for causing build bustages CLOSED TREE
Backed out changeset 93b94212020f (bug 1810627)
Backed out changeset b5d3998c113c (bug 1747145)
2023-01-18 04:37:58 +02:00
Mike Hommey 0b48226343 Bug 1810627 - Allow to build without a wasi sysroot. r=firefox-build-system-reviewers,ahochheiden
On e.g. Debian unstable, the wasi SDK is available via packages in a
multiarch fashion, which doesn't require the --sysroot flag being passed
to the compiler.

Differential Revision: https://phabricator.services.mozilla.com/D166978
2023-01-18 01:08:12 +00:00
Mike Hommey 2cea3ab762 Bug 1747145 - Add more configure checks for the wasm toolchain setup. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D166977
2023-01-18 01:08:11 +00:00
Nordin Abouzahra a16e930ffd Bug 1772769 - Allow default multichannel audio support by restoring defines. r=kinetik
Earlier in bug 1351378 some superfluous set_define()s were removed. However,
some were accidentally removed despite having purpose. This commit restores
the MOZ_ALSA and MOZ_PULSEAUDIO defines, the former being used in
Sandbox{Filter,BrokerPolicyFactory,Launch}.cpp and the latter used in setting
the preference media.forcestereo.enabled to false which fixes the primary
concern of bug report.

Differential Revision: https://phabricator.services.mozilla.com/D158966
2023-01-11 20:59:15 +00:00
Dave Townsend 20f749fe4e Bug 1805401: Disable MOZ_NEW_XULSTORE in nightly. r=NeilDeakin
Just disable in the build config for now. It is unlikely that any issues will
come up since this is disabled in release but just in case this will allow us
to re-enable it quickly.

Differential Revision: https://phabricator.services.mozilla.com/D164565
2023-01-03 12:59:33 +00:00
Stanca Serban 04faed7775 Backed out changeset 8b21074f1b52 (bug 1805401) for nsCOMPtr related failures. CLOSED TREE 2022-12-16 17:09:05 +02:00
Dave Townsend a828d3a7f7 Bug 1805401: Disable MOZ_NEW_XULSTORE in nightly. r=NeilDeakin
Just disable in the build config for now. It is unlikely that any issues will
come up since this is disabled in release but just in case this will allow us
to re-enable it quickly.

Differential Revision: https://phabricator.services.mozilla.com/D164565
2022-12-16 13:52:46 +00:00
Butkovits Atila 686f268a93 Backed out changeset f66b140c4c37 (bug 1805401) for causing build bustages. CLOSED TREE 2022-12-16 14:47:48 +02:00
Dave Townsend 8b7a3eb909 Bug 1805401: Disable MOZ_NEW_XULSTORE in nightly. r=NeilDeakin
Just disable in the build config for now. It is unlikely that any issues will
come up since this is disabled in release but just in case this will allow us
to re-enable it quickly.

Differential Revision: https://phabricator.services.mozilla.com/D164565
2022-12-16 12:30:48 +00:00
Norisz Fay fc7469f071 Backed out changeset 2bfb5438d2ae (bug 1805401) for causing python failures on lint.py 2022-12-16 13:37:18 +02:00
Dave Townsend 275105e881 Bug 1805401: Disable MOZ_NEW_XULSTORE in nightly. r=NeilDeakin
Just disable in the build config for now. It is unlikely that any issues will
come up since this is disabled in release but just in case this will allow us
to re-enable it quickly.

Differential Revision: https://phabricator.services.mozilla.com/D164565
2022-12-16 10:42:12 +00:00
Mike Hommey 4819a4a6f8 Bug 1805504 - Disable wasm sandboxing when building rusttests. r=firefox-build-system-reviewers,nalexander
No rust code indirectly depends on wasm-sandboxed code, so we don't need
to build the sandbox.

Differential Revision: https://phabricator.services.mozilla.com/D164619
2022-12-14 00:52:16 +00:00
Mike Hommey 40ba4494af Bug 1804548 - Fail early when trying to cross-compile with wasm sandboxing on Windows. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D164136
2022-12-13 03:55:35 +00:00
Mike Hommey 9170271cd5 Bug 1804605 - Move MOZ_DATA_REPORTING to python configure. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D164185
2022-12-12 21:43:52 +00:00
Sandor Molnar bcbc79bd5d Backed out changeset 4e4bb8d1cdd2 (bug 1804548) for causing py failures. CLOSED TREE 2022-12-08 03:19:17 +02:00
Mike Hommey 07544c63f9 Bug 1804548 - Fail early when trying to cross-compile with wasm sandboxing on Windows. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D164136
2022-12-08 00:06:24 +00:00
Paul Adenot 37656b1b28 Bug 1802520 - Allow disabling real-time callback tracing in configure. r=glandium,pehrsons,media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D163111
2022-11-29 15:29:08 +00:00
Cristian Tuns 280201b26e Backed out changeset 028a7f4e4b32 (bug 1776255) for causing Linux artifact builds bustages on central CLOSED TREE 2022-11-26 17:13:36 -05:00
ahochheiden 3086d55972 Bug 1776255 - Add the appropriate 'when' to all 'option' that end up calling 'pkg_check_modules' later r=firefox-build-system-reviewers,glandium
We don't check for pkg-config on some platforms (Windows, OSX, Android).
On those platforms, calling 'pkg_check_modules' will not work. Adding
the same 'when' used for the 'pkg_config' check to all the options that
end up calling 'pkg_check_modules' effectively disables them, and prevents
'pkg_check_modules' from being called.

Differential Revision: https://phabricator.services.mozilla.com/D150649
2022-11-25 17:22:03 +00:00
Mike Hommey b772950f5b Bug 1802233 - target_is_linux_or_wasi was not meant to include Android. r=firefox-build-system-reviewers,ahochheiden
To avoid the confusion with target_is_linux meaning linux+android, we
rename target_is_linux to target_has_linux_kernel.

Naming is hard.

Differential Revision: https://phabricator.services.mozilla.com/D162913
2022-11-24 00:46:13 +00:00
Mathew Hodson 567b4f4679 Bug 1799338 - Fix build with --disable-backgroundtasks. r=glandium
MOZ_BACKGROUNDTASKS should be undefined when the feature is disabled.

Add some more tests for `when` parameter of set_config() and set_define().

Differential Revision: https://phabricator.services.mozilla.com/D161400
2022-11-10 09:57:26 +00:00
Mike Hommey 4ac82edfab Bug 1796072 - Don't let newer clang default to lld on Android. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D161095
2022-11-03 06:09:28 +00:00
Kagami Sascha Rosylight fac20df060 Bug 1796085 - Part 1: Define MOZ_BACKGROUNDTASKS macro globally r=smaug,necko-reviewers,application-update-reviewers,nalexander,valentin
There are 10+ separate macro definition for this, we can do it globally instead.

Differential Revision: https://phabricator.services.mozilla.com/D156911
2022-10-19 12:04:08 +00:00
Mike Hommey 745c699b4d Bug 1796039 - Get pdbstr from Visual Studio artifact. r=firefox-build-system-reviewers,andi
Before bug 1289641, we didn't have pdbstr in the VS artifact, but we now
do as a side effect of using vsdownload. So instead of exfiltrating the
file from a Windows worker, we can just use the one from VS.

Differential Revision: https://phabricator.services.mozilla.com/D159659
2022-10-19 07:13:15 +00:00
Mike Hommey 4370a03ad7 Bug 1796018 - Bump libvpx requirement for --with-system-libvpx. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D159652
2022-10-19 02:54:40 +00:00
Mike Hommey 8f4d47c529 Bug 1795207 - Move the remainder of warning flags setup in old-configure to python. r=firefox-build-system-reviewers,andi
While we're here, make the setup more consistent across host/target
c/c++, and remove the C compiler warning flags from the C linker flags,
where they are irrelevant.

Differential Revision: https://phabricator.services.mozilla.com/D159358
2022-10-18 19:46:44 +00:00
Mike Hommey db68ae8577 Bug 1791482 - Use ARM neon flags more consistently. r=firefox-build-system-reviewers,andi
In one place, we specifically check for softfp and do the right thing,
while in another we omit doing it, while at the same time we already
have a check in arm.configure that gives us (mostly) the flags we want.

Differential Revision: https://phabricator.services.mozilla.com/D157687
2022-09-20 09:12:31 +00:00
Makoto Kato 4e66e82fab Bug 1790800 - Disable WebMIDI support on Linux/riscv64. r=gsvelto
Actually, the midir in mozilla-central isn't able to built for Linux/riscv64.
Although upstreamed midir supports Linux/riscv64 by [*1], our tree version is
old and we cannot update it due to bug 1773189. So we should disable it on
Linux/riscv64.

*1 https://github.com/Boddlnagg/midir/pull/101

Differential Revision: https://phabricator.services.mozilla.com/D157319
2022-09-15 04:37:30 +00:00
Andi-Bogdan Postelnicu d4f5769a01 Bug 1746462 - add support for --enable-linker=mold on linux. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D134330
2022-09-09 11:01:50 +00:00
Paul Adenot 99c3dd87bd Bug 1765480 - Regenerate config* files for ffvpx on all platforms needed, splitting off `config_components.h`. r=alwu
Depends on D150971

Differential Revision: https://phabricator.services.mozilla.com/D150972
2022-08-23 14:19:24 +00:00
Marian-Vasile Laza 857f78b411 Backed out 7 changesets (bug 1765480) for causing build bustages on config.h. CLOSED TREE
Backed out changeset 5403acde30c2 (bug 1765480)
Backed out changeset 7176e2a3b1a0 (bug 1765480)
Backed out changeset a54225be60ac (bug 1765480)
Backed out changeset 50b0534f07a5 (bug 1765480)
Backed out changeset 104a811c42e5 (bug 1765480)
Backed out changeset 7e2ce67588d3 (bug 1765480)
Backed out changeset 6077ae857148 (bug 1765480)
2022-08-17 20:53:08 +03:00
Paul Adenot e53a91d5e3 Bug 1765480 - Regenerate config* files for ffvpx on all platforms needed, splitting off `config_components.h`. r=alwu
Depends on D150971

Differential Revision: https://phabricator.services.mozilla.com/D150972
2022-08-17 16:29:32 +00:00
Pier Angelo Vendrame 83aafd9331 Bug 1769030: Add a configure flag to load policies only from the local policies.json file r=mkaply,glandium
Add a configuration flag to make Enterprise Policies mechanism only
consult a policies.json file (avoiding the Windows Registry, macOS's
file system attributes, and /etc/firefox/policies/policies.json on
other OS).

Differential Revision: https://phabricator.services.mozilla.com/D146300
2022-08-16 14:42:20 +00:00
Ben Dean-Kawamura e965ed0056 Bug 1766045 - Adding mach command to generate UniFFI files r=glandium
Added `mach uniffi generate` which executes `uniffi-bindgen-gecko-js` to
generate UniFFI bindings. It's unfortunate that we need to check these
files in, but I couldn't figure out a way to auto-generate them as part
of the build process.

Adding `#include "nsIContent.h"` to dom/base/nsINodeList.h.  I think
that should have been present before, but things built okay because of
the way things got combined in the uniffied .cpp files. Adding these new
webIDL files bumped `NodeListBinding.cpp` to a new uniffied .cpp file
which caused the build to fail.

Differential Revision: https://phabricator.services.mozilla.com/D144468
2022-08-03 18:59:36 +00:00
Ben Dean-Kawamura fd4cfd1807 Bug 1766045 - Vendoring in Rust code for uniffi-bindgen-gecko-js r=glandium,supply-chain-reviewers
- Added `--enable-uniffi-fixtures` flag.  When set, we will compile in
  the UniFFI test fixtures into our shared Rust crate and eventually
  into `libxul`.
- Vendoring in the Rust crates needed for `uniffi-bindgen-gecko-js`

Differential Revision: https://phabricator.services.mozilla.com/D144467
2022-08-03 18:59:36 +00:00
Butkovits Atila a8ad39a288 Backed out 6 changesets (bug 1766045) for causing build bustages. CLOSED TREE
Backed out changeset 113593df6272 (bug 1766045)
Backed out changeset f137315bb6af (bug 1766045)
Backed out changeset d86ad195a9a0 (bug 1766045)
Backed out changeset e8bc2ec40cff (bug 1766045)
Backed out changeset 2d33e41ac507 (bug 1766045)
Backed out changeset 4d5874e16302 (bug 1766045)
2022-08-03 17:40:30 +03:00
Ben Dean-Kawamura 86a582c07a Bug 1766045 - Adding mach command to generate UniFFI files r=glandium
Added `mach uniffi generate` which executes `uniffi-bindgen-gecko-js` to
generate UniFFI bindings. It's unfortunate that we need to check these
files in, but I couldn't figure out a way to auto-generate them as part
of the build process.

Adding `#include "nsIContent.h"` to dom/base/nsINodeList.h.  I think
that should have been present before, but things built okay because of
the way things got combined in the uniffied .cpp files. Adding these new
webIDL files bumped `NodeListBinding.cpp` to a new uniffied .cpp file
which caused the build to fail.

Differential Revision: https://phabricator.services.mozilla.com/D144468
2022-08-03 13:48:28 +00:00
Ben Dean-Kawamura 760c603bcb Bug 1766045 - Vendoring in Rust code for uniffi-bindgen-gecko-js r=glandium,supply-chain-reviewers
- Added `--enable-uniffi-fixtures` flag.  When set, we will compile in
  the UniFFI test fixtures into our shared Rust crate and eventually
  into `libxul`.
- Vendoring in the Rust crates needed for `uniffi-bindgen-gecko-js`

Differential Revision: https://phabricator.services.mozilla.com/D144467
2022-08-03 13:48:27 +00:00
criss 04616ca52e Backed out 2 changesets (bug 1766045) for causing Bp-hybrid failures on UniFFIGeneratedScaffolding.cpp
Backed out changeset 5708672d0e83 (bug 1766045)
Backed out changeset cc77fd5ec7a8 (bug 1766045)
2022-08-03 00:01:58 +03:00
Ben Dean-Kawamura fb5bfb756d Bug 1766045 - Vendoring in Rust code for uniffi-bindgen-gecko-js r=glandium,supply-chain-reviewers
- Added `--enable-uniffi-fixtures` flag.  When set, we will compile in
  the UniFFI test fixtures into our shared Rust crate and eventually
  into `libxul`.
- Vendoring in the Rust crates needed for `uniffi-bindgen-gecko-js`

Differential Revision: https://phabricator.services.mozilla.com/D144467
2022-08-02 19:51:48 +00:00
Butkovits Atila faa5640935 Backed out 7 changesets (bug 1765480) for causing build bustages. CLOSED TREE
Backed out changeset ed10a546db4f (bug 1765480)
Backed out changeset 3a362936969a (bug 1765480)
Backed out changeset c0efff24b361 (bug 1765480)
Backed out changeset e393cf609b9b (bug 1765480)
Backed out changeset 2979c28076f7 (bug 1765480)
Backed out changeset 37cfee2c325e (bug 1765480)
Backed out changeset e3017c8a70af (bug 1765480)
2022-07-21 20:03:32 +03:00
Paul Adenot 83e8e46967 Bug 1765480 - Regenerate config* files for ffvpx on all platforms needed, splitting off `config_components.h`. r=alwu
Depends on D150971

Differential Revision: https://phabricator.services.mozilla.com/D150972
2022-07-21 16:19:27 +00:00
Gerald Squelart 3a965409ce Bug 1480331 - Compile and build JsonCpp without exception handling - r=glandium
JsonCpp is used in different places around Firefox, which is normally built
without exception handling, so we don't want JsonCpp to `throw`.
Because we don't want to modify the JsonCpp files themselves (to ease future
update from the source), and some of its headers are directly included around
Firefox, we need to define `JSON_USE_EXCEPTION` to be 0 everywhere, which can
be done through moz.configure.
JsonCpp replaces its exception-triggering code with C asserts and aborts.

Differential Revision: https://phabricator.services.mozilla.com/D151190
2022-07-08 13:32:37 +00:00
alwu 9f4133b91f Bug 1758789 - part18 : disable the media engine feature on MinGW. r=media-playback-reviewers,firefox-build-system-reviewers,jolin,ahochheiden
On MinGW, it lacks of the headers for RunTimeClass and we have trouble to make it work. This patch adds a new config for Media Engine in order not to build related files on MinGW environment.

In addition, MinGW build version of Firefox is only used for Tor browser and it's ok to disable this feature for them for now. If they want to port this feature in the future as well, then we can see if we can fix the build problems at that time.

Differential Revision: https://phabricator.services.mozilla.com/D150660
2022-06-30 22:34:22 +00:00
smolnar 50d8d18c90 Backed out 18 changesets (bug 1758789) for causing win AArch64 build bustages. CLOSED TREE
Backed out changeset e3f1d216b7b0 (bug 1758789)
Backed out changeset 737731f1056d (bug 1758789)
Backed out changeset 76a2ae95718a (bug 1758789)
Backed out changeset c134ab07a603 (bug 1758789)
Backed out changeset 84f574f95348 (bug 1758789)
Backed out changeset 7dae17111210 (bug 1758789)
Backed out changeset cdec8c010960 (bug 1758789)
Backed out changeset a1976aeac84e (bug 1758789)
Backed out changeset 6aac8720ffa5 (bug 1758789)
Backed out changeset 48b798f102e5 (bug 1758789)
Backed out changeset 310e551d433b (bug 1758789)
Backed out changeset b3d6df1153c1 (bug 1758789)
Backed out changeset 61775207f73b (bug 1758789)
Backed out changeset f0c28aea2f4b (bug 1758789)
Backed out changeset 0a65ff00244a (bug 1758789)
Backed out changeset 0b747e748709 (bug 1758789)
Backed out changeset cdf4acea8c87 (bug 1758789)
Backed out changeset 0c4009da7d1e (bug 1758789)
2022-06-30 23:54:23 +03:00
alwu 1368dec887 Bug 1758789 - part18 : disable the media engine feature on MinGW. r=media-playback-reviewers,firefox-build-system-reviewers,jolin,ahochheiden
On MinGW, it lacks of the headers for RunTimeClass and we have trouble to make it work. This patch adds a new config for Media Engine in order not to build related files on MinGW environment.

In addition, MinGW build version of Firefox is only used for Tor browser and it's ok to disable this feature for them for now. If they want to port this feature in the future as well, then we can see if we can fix the build problems at that time.

Differential Revision: https://phabricator.services.mozilla.com/D150660
2022-06-30 18:14:50 +00:00
Norisz Fay 98d1dd78eb Bug 1776429 - Fix lint failure r=fix CLOSED TREE 2022-06-29 13:14:03 +03:00