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

6070 Коммитов

Автор SHA1 Сообщение Дата
Arthur Carcano 0030786063 Bug 1796543 - Add a subcommand cargo udeps to ./mach. r=glandium,firefox-build-system-reviewers
This adds a subcommand ./mach cargo udeps with the following
sub command arguments:

Sub Command Arguments:
  --all-crates          Check all of the crates in the tree.
  crates                The crate name(s) to check.
  --jobs [jobs], -j [jobs]
                        Run the tests in parallel using multiple
processes.
  -v, --verbose         Verbose output.
  --message-format-json
                        Emit error messages as JSON.
  --expect-unused       Do not return an error exit code if udeps
detects unused dependencies.

Differential Revision: https://phabricator.services.mozilla.com/D159838
2022-11-22 06:22:17 +00:00
Mozilla Releng Treescript 456de3449a Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-11-14 15:13:23 +00:00
ahochheiden 0760a997f7 Bug 1744340 - Disable colored output from cargo if `NO_ANSI` is set r=sheehan
Differential Revision: https://phabricator.services.mozilla.com/D161665
2022-11-09 17:47:51 +00:00
André Bargull 7d0125b8c7 Bug 1799859: Add support for "microsecond" and "nanosecond" units. r=dminor
Steps performed:
- Add "microsecond" and "nanosecond" to "intl/icu/data_filter.json".
- Run "icu_sources_data.py" to update the ICU data file.
- Run "update-tzdata.sh" to reapply the tzdata 2022f changes.
- Add "microsecond" and "nanosecond" to "SanctionedSimpleUnitIdentifiers.yaml".
- Run "make_intl_data.py units" to regenerate additional SpiderMonkey files.

Spec PR: https://github.com/tc39/ecma402/pull/708

Differential Revision: https://phabricator.services.mozilla.com/D161676
2022-11-09 16:45:43 +00:00
ahochheiden 604d394173 Bug 1744340 - Enable colored output on Windows - r=firefox-build-system-reviewers,glandium
- The bug that was constantly disabling `VIRTUAL_TERMINAL_PROCESSING` has been fixed upstream in CYGWIN (fdbd153932) and merged into MSYS2 (e4fdb0cb73)
- The upcoming MozillaBuild `4.0.2` release will have the updated MSYS2 that contains this fix, allowing us to enable colored output on Windows.
- We will enable `ENABLE_VIRTUAL_TERMINAL_PROCESSING` once (For each stdout and stderr) on initializing the formatter to ensure that `VIRTUAL_TERMINAL_PROCESSING` is enabled whenever Mach is called..
- These changes will only be active if the MozillaBuild version is greater than or equal to Release `4.0.2`

Differential Revision: https://phabricator.services.mozilla.com/D138256
2022-11-09 04:33:19 +00:00
Butkovits Atila fe7ef22ba5 Backed out 7 changesets (bug 1744340, bug 1798827) for causing mach failures at test_commands.py. CLOSED TREE
Backed out changeset 9cb83a8d1f28 (bug 1798827)
Backed out changeset ebff36a14737 (bug 1744340)
Backed out changeset 5d6aabaf72c4 (bug 1744340)
Backed out changeset 8efafab5495f (bug 1744340)
Backed out changeset 8a873505f17d (bug 1744340)
Backed out changeset 3024fff68f6c (bug 1744340)
Backed out changeset 42a0a61583f0 (bug 1744340)
2022-11-09 04:21:47 +02:00
ahochheiden fbba799d5f Bug 1744340 - Enable colored output on Windows - r=firefox-build-system-reviewers,glandium
- The bug that was constantly disabling `VIRTUAL_TERMINAL_PROCESSING` has been fixed upstream in CYGWIN (fdbd153932) and merged into MSYS2 (e4fdb0cb73)
- The upcoming MozillaBuild `4.0.2` release will have the updated MSYS2 that contains this fix, allowing us to enable colored output on Windows.
- We will enable `ENABLE_VIRTUAL_TERMINAL_PROCESSING` once (For each stdout and stderr) on initializing the formatter to ensure that `VIRTUAL_TERMINAL_PROCESSING` is enabled whenever Mach is called..
- These changes will only be active if the MozillaBuild version is greater than or equal to Release `4.0.2`

Differential Revision: https://phabricator.services.mozilla.com/D138256
2022-11-09 00:40:56 +00:00
Mike Hommey 1ed19c9524 Bug 1791476 - When clang is newer than rust's llvm, use clang sanitizer runtimes. r=firefox-build-system-reviewers,ahochheiden
To do so, we move cargo-linker from shell to python because it's more
convenient.

Differential Revision: https://phabricator.services.mozilla.com/D161010
2022-11-08 00:44:27 +00:00
André Bargull 83b9a93f65 Bug 1798623: Update time zone data to tzdata2022f. r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D161007
2022-11-04 06:57:16 +00:00
Henri Sivonen 1737aa6569 Bug 1630920 - Remove the gb2312han and big5han collations. r=anba
Makes the ICU data 191 KB smaller.

Differential Revision: https://phabricator.services.mozilla.com/D160337
2022-10-28 08:44:04 +00:00
Henri Sivonen 0b6dc7aed6 Bug 1793749 - Build ICU with the implicithan collation root. r=anba
Makes ICU data 353 KB smaller.

Differential Revision: https://phabricator.services.mozilla.com/D160345
2022-10-28 08:43:58 +00:00
André Bargull b9446c85e2 Bug 1797248: Update time zone data to tzdata2022e. r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D160173
2022-10-27 11:32:17 +00:00
Stanca Serban 09251682b1 Backed out changeset 5bb3611c95d7 (bug 1797248) for causing time zones failures. CLOSED TREE 2022-10-27 13:00:39 +03:00
André Bargull 2b52b24839 Bug 1797248: Update time zone data to tzdata2022e. r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D160173
2022-10-27 09:11:48 +00:00
Mozilla Releng Treescript d63c4b1078 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-10-17 14:03:50 +00:00
Nika Layzell a04c002ee0 Bug 1794644 - Part 1: Remove rlbox shared lock workaround for macOS 10.{9-11}, r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D159084
2022-10-14 14:20:34 +00:00
Joel Maher b9f4654ae1 Bug 1794675 - Remove unnecessary 'sort' from config/tests makefile to avoid windows newlines. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D159240
2022-10-13 12:46:52 +00:00
Mozilla Releng Treescript 6d7704caae Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-09-19 10:51:32 +00:00
Mike Hommey 3b6d66eba3 Bug 1788858 - Remove HOST_MAJOR_VERSION. r=firefox-build-system-reviewers,necko-reviewers,andi
`HAS_CONNECTX` is not used in `netwerk/protocol/http` as of bug 1689604.
In NSPR, it is used to enable the use of `connectx`, which is available
since macOS 10.11, and we target 10.12, which means it's always
available, so we don't need to check for it based on the target version
(and checking the host version was wrong, too).

Differential Revision: https://phabricator.services.mozilla.com/D156275
2022-09-05 21:24:25 +00:00
Mozilla Releng Treescript 00e5040835 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-08-22 14:31:36 +00:00
André Bargull 52aed99c43 Bug 1786025: Update time zone data to tzdata2022b. r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D155068
2022-08-19 17:14:03 +00:00
Mike Hommey 7500b3d911 Bug 1783800 - Remove now apparently unnecessary compiler flags for ICU. r=firefox-build-system-reviewers,ahochheiden
Considering builds with clang-cl now enable all the same warnings as those
with clang, and those flags are not given to clang-cl, that means
they're not necessary.

Differential Revision: https://phabricator.services.mozilla.com/D154054
2022-08-16 00:55:05 +00:00
Nika Layzell 665766a29c Bug 1759555 - Part 2: Partially configure rust-analyzer for ./mach ide vscode, r=glandium,andi
In order to allow rust-analyzer to be able to use the build script in
the mozbuild crate to discover the configuration information, this patch
adds new flags to the vscode config to tell rust-analyzer to invoke
cargo through `./mach cargo check`, and use the correct target directory
within the objdir rather than `$(topsrcdir)/target`.

Due to the virtual filesystem used by rust-analyzer not including files
in the object directory, this is not sufficient to get suggestions for
symbols from the included files, however it will accurately fetch
diagnostics upon save and run things like proc macros.

A new feature will likely need to be added to rust-analyzer to allow us
to specify additional paths to add to the source root for packages to
fix that issue.

Due to this change using `./mach cargo check`, rather than running it
independently, we don't run into issues caused by running `check`
against crates in the workspace which aren't being used, making the
diagnostics more useful.

An additional feature needed to be added to `./mach cargo check` to
allow specifying `--message-format=json`. I am open to suggestions for a
more elegant way to communicate this flag into the makefile.

Depends on D153269

Differential Revision: https://phabricator.services.mozilla.com/D153270
2022-08-09 14:12:12 +00:00
Nika Layzell c8e801b440 Bug 1759555 - Part 1: Avoid using env! for includes in the mozbuild crate, r=glandium
This switches the code to instead use the generated source file, which is
discovered based on `OUT_DIR` so is easier for rust-analyzer to understand.

The configuration for rust-analyzer will be updated in the next part to
make sure that rust-analyzer is able to take advantage of these changes,
and produce better diagnostics.

Differential Revision: https://phabricator.services.mozilla.com/D153269
2022-08-09 14:12:11 +00:00
Mike Hommey cbc9dc5ed6 Bug 1783798 - Disable enum-constexpr-conversion error in ICU for now. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D154052
2022-08-09 07:45:54 +00:00
Mozilla Releng Treescript 17e7325646 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-07-25 16:15:27 +00:00
Dmitry Bezhetskov 1bb5a69ae1 Bug 1768214 - introduce wasm32 codegen. r=jandem
We are going to compile JS into WebAssembly! This is the first patch
in an upcoming queue. Here we introduce wasm32 architecture so that
SpiderMonkey can be compiled with enabled jit for wasi target.

Differential Revision: https://phabricator.services.mozilla.com/D145790
2022-07-01 04:23:16 +00:00
Mozilla Releng Treescript 82769fbd14 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-06-27 15:55:43 +00:00
Emilio Cobos Álvarez bdc3a430c4 Bug 1774594 - Don't add color flags to linker. r=glandium
This should work. I don't recall there being any linker honoring these
but I might be wrong.

Differential Revision: https://phabricator.services.mozilla.com/D149609
2022-06-21 06:42:35 +00:00
Emilio Cobos Álvarez 84a20431f4 Bug 1773359 - Remove TRANSPARENT workaround in webrender bindings. r=gfx-reviewers,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D148679
2022-06-08 19:19:08 +00:00
ahochheiden 4bb296a301 Bug 1766497 - Add `opener` parameter to `_MockBaseOpen` so that <PathObject>.open calls are mocked as expected r=ahal
Depends on D148176

Differential Revision: https://phabricator.services.mozilla.com/D148177
2022-06-07 23:52:50 +00:00
Haik Aftandilian 4591ba72b4 Bug 1770484 - Make Mac processes not depend on DYLD_LIBRARY_PATH to load libraries r=glandium,gsvelto,mac-reviewers,necko-reviewers,dragana,spohl
Change XUL and other dylibs to be built with an @rpath/<dylib> install name (LC_ID_DYLIB) instead of @executable_path/<dylib>.

Change executables to be built with an @rpath dyld search path set to @executable_path by default so that @rpath/<dylib> dylibs in the same directory can be resolved. For executables not in the same directory as @rpath dylibs, such as plugin-container, set a relative @rpath such as @executable_path/../../../.

Previously, dylib install names were set as @executable_path/<dylib> allowing them to be resolved by dyld for the loading executable if the executable resided in the same directory as the dylib. For executables not in the same directory as the dylibs, dyld resolved these dylibs using DYLD_LIBRARY_PATH set before launching the process by Firefox code. With this change, loading does not rely on DYLD environment variables. Instead, dylibs have an install name set as @rpath/<dylib> and each executable loading a dylib has its @rpath set at compile-time to refer to dylib directory.

Differential Revision: https://phabricator.services.mozilla.com/D147360
2022-06-03 21:14:01 +00:00
Mozilla Releng Treescript 8e705edc38 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-05-30 11:42:22 +00:00
Mozilla Releng Treescript 87ecd21d3c Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-05-02 14:42:53 +00:00
Mike Hommey 6b078d7de3 Bug 1660745 - Update encoding_rs to 0.8.31 and packed_simd to 0.3.7. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D88002
2022-04-20 06:24:28 +00:00
Jesse Schwartzentruber efb130aed4 Bug 1762324 - Disable sanitizers for non-Linux native builds. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D142617
2022-04-11 19:22:27 +00:00
André Bargull d9409e29f8 Bug 1763783 - Part 2: Update in-tree ICU to release 71.1. r=platform-i18n-reviewers,jfkthame
Depends on D143273

Differential Revision: https://phabricator.services.mozilla.com/D143275
2022-04-10 09:17:54 +00:00
Mozilla Releng Treescript b9bcf6abd9 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-04-04 15:55:18 +00:00
Nordin Abouzahra 82b9d72e94 Bug 1351378 - Add an --enable-audio-backends option. r=mhentges
This addresses the original intent of the bug report which asks for allowing
sndio to be built on more than just OpenBSD. In addition of modifying the
existing --enable-sndio to support this request, the option
--enable-audio-backends was added which takes a list of possible backends to
support per discussion in the bug report.

For example specifying --enable-audio-backends=alsa,jack,pulseaudio,sndio
allows for runtime selection of those four cubeb backends. If all four backends
are available the user can specify `media.cubeb.backend` in `about:config` to
force a specific backend.

Removed superfluous set_define()s as libcubeb's moz.build does the necessary
`DEFINES['...']` assignments for each backend.

In addition logic for finer control of audio backend selection on Android was
added. One can now specify aaudio, opensl or both (which is the default).

Differential Revision: https://phabricator.services.mozilla.com/D141450
2022-03-28 20:48:52 +00:00
Iulian Moraru 866f261a7d Backed out changeset c25c591841cd (bug 1351378) for causing multiple failures. CLOSED TREE 2022-03-22 19:37:46 +02:00
Nordin Abouzahra 2b0b1c90db Bug 1351378 - Add an --enable-audio-backends option. r=mhentges
This addresses the original intent of the bug report which asks for allowing
sndio to be built on more than just OpenBSD. In addition of modifying the
existing --enable-sndio to support this request, the option
--enable-audio-backends was added which takes a list of possible backends to
support per discussion in the bug report.

For example specifying --enable-audio-backends=alsa,jack,pulseaudio,sndio
allows for runtime selection of those four cubeb backends. If all four backends
are available the user can specify `media.cubeb.backend` in `about:config` to
force a specific backend.

***
Bug 1351378 - Address linter error. r?mhentges,glandium

***
Bug 1351378 - Remove superfluous set_define(). r?mhentges,glandium

libcubeb's moz.build does the necessary `DEFINES['...']` assignments for each
backend. Remove superfluous set_define().

Differential Revision: https://phabricator.services.mozilla.com/D141450
2022-03-22 17:02:05 +00:00
Mitchell Hentges 4a128101e2 Bug 1758204: `mozunit` should use `--tb=short` with pytest r=ahal
This will decrease test output clutter while making it easier to
identify and diagnose test failures.

Differential Revision: https://phabricator.services.mozilla.com/D140421
2022-03-08 15:32:06 +00:00
Mozilla Releng Treescript 5c2afb69bf Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-03-08 10:07:48 +00:00
Zhao Jiazhong c5e6866a45 Bug 1746350 - [loong64] Add LoongArch64 backend support. r=lth,jandem
Differential Revision: https://phabricator.services.mozilla.com/D134285
2022-02-25 14:55:26 +00:00
Lars T Hansen 16bd16b49d Bug 1754930 - Understand mozilla::Maybe in masm declarations. r=nbp
Basically, argument types must allow for templated types and optional
args must recognize at least `mozilla::Nothing()`.  It's a bit hacky but
it seems like a useful extension that won't destroy anything, and I
need this.

Differential Revision: https://phabricator.services.mozilla.com/D138526
2022-02-15 07:03:29 +00:00
Mozilla Releng Treescript 1d08ac73a7 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-02-07 15:33:08 +00:00
Mike Hommey e7c54fc571 Bug 1751331 - Remove MOZ_DIST. r=firefox-build-system-reviewers,mhentges
As mentioned in bug 1747354, the location of the dist directory is
relied to be $topobjdir/dist, so just use that consistently rather
than getting it from a separate variable for rust build scripts.

Differential Revision: https://phabricator.services.mozilla.com/D136556
2022-01-25 21:29:49 +00:00
criss 592389ca2d Backed out 10 changesets (bug 1751331) for causing bustages. CLOSED TREE
Backed out changeset 5ce212465a26 (bug 1751331)
Backed out changeset 14d62b8ffa5a (bug 1751331)
Backed out changeset 76f46bd9afa1 (bug 1751331)
Backed out changeset 147faaad046f (bug 1751331)
Backed out changeset f85b049d12f9 (bug 1751331)
Backed out changeset 16d8d3f8378b (bug 1751331)
Backed out changeset 1cd9386a3927 (bug 1751331)
Backed out changeset 20faacba6db6 (bug 1751331)
Backed out changeset 7d17f75bcb38 (bug 1751331)
Backed out changeset 28b9aab1f174 (bug 1751331)
2022-01-25 13:00:25 +02:00
Mike Hommey 5999e70213 Bug 1751331 - Remove MOZ_DIST. r=firefox-build-system-reviewers,mhentges
As mentioned in bug 1747354, the location of the dist directory is
relied to be $topobjdir/dist, so just use that consistently rather
than getting it from a separate variable for rust build scripts.

Differential Revision: https://phabricator.services.mozilla.com/D136556
2022-01-25 09:03:01 +00:00
Jan de Mooij 844557ace1 Bug 1749665 part 3 - Replace atomic operation stubs with inline assembly. r=lth
Goal of this patch is to allow disabling all JIT codegen in certain Firefox processes
to let us enable more security mitigations. The JS VM uses the atomic operation stubs
we compile at runtime so this patch converts those to inline assembly instead.

This adds a Python script to generate a header file that has all the inline assembly code.
The inline assembly instructions are based on the JIT-compiled trampoline code.

The generated header is used for all x86/x64/arm32/arm64 builds, so this now includes
no-JIT builds as well.

Differential Revision: https://phabricator.services.mozilla.com/D135984
2022-01-24 09:11:50 +00:00
Iulian Moraru 4d6f01e19a Backed out 5 changesets (bug 1749665) for causing hazard failures. CLOSED TREE
Backed out changeset 750012d34b73 (bug 1749665)
Backed out changeset 7a30186c853a (bug 1749665)
Backed out changeset 1942703cc665 (bug 1749665)
Backed out changeset 012177f72587 (bug 1749665)
Backed out changeset e02c59ccee17 (bug 1749665)
2022-01-24 00:05:05 +02:00
Jan de Mooij 34ed6f1cab Bug 1749665 part 3 - Replace atomic operation stubs with inline assembly. r=lth
Goal of this patch is to allow disabling all JIT codegen in certain Firefox processes
to let us enable more security mitigations. The JS VM uses the atomic operation stubs
we compile at runtime so this patch converts those to inline assembly instead.

This adds a Python script to generate a header file that has all the inline assembly code.
The inline assembly instructions are based on the JIT-compiled trampoline code.

The generated header is used for all x86/x64/arm32/arm64 builds, so this now includes
no-JIT builds as well.

Differential Revision: https://phabricator.services.mozilla.com/D135984
2022-01-23 16:47:17 +00:00
Mitchell Hentges 0116a8d491 Bug 1748737: Update deprecated pytest code r=webdriver-reviewers,ahal,whimboo
`pytest` is about to be upgraded, so this patch resolves a bunch of the
issues currently blocking the upgrade.
Most changes done in this patch are described in the "deprecations" page
on the pytest docs:
https://docs.pytest.org/en/latest/deprecations.html#using-class-in-custom-collectors

One undocumented change is that defining a pytest argument as the same name as an
in-scope, imported fixture function, will no longer use that imported function.

Differential Revision: https://phabricator.services.mozilla.com/D136537
2022-01-21 18:21:55 +00:00
Christian Holler 6a7cccb953 Bug 1747298 - Use CXX for Cargo linking when necessary. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D135219
2022-01-11 11:26:39 +00:00
Iulian Moraru 30ccf11d2e Backed out changeset 30fb33fe9ec3 (bug 1747298) for causing multiple mochitest failures. CLOSED TREE 2022-01-11 13:14:36 +02:00
Christian Holler 7db161c99e Bug 1747298 - Use CXX for Cargo linking when necessary. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D135219
2022-01-11 09:31:31 +00:00
Mozilla Releng Treescript b1c26ef50c Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-01-10 17:50:37 +00:00
Yoshi Cheng-Hao Huang d0dc9adda0 Bug 1748605 - Remove unused icu headers from check_spidermonkey_style.py. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D135107
2022-01-05 21:40:31 +00:00
Mike Hommey 2bd5e115bb Bug 1647542 - Work around wasm2c build failure when cross-compiling on Windows. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D135018
2022-01-05 00:47:56 +00:00
Mike Hommey 1acc37c7a6 Bug 1747756 - Move Windows system libraries from LIBS to moz.build. r=firefox-build-system-reviewers,mhentges
While mingw builds don't require user32 and advapi32 explicitly, it doesn't
hurt for them to be there (and they're required for clang-cl build).
Likewise, while clang-builds don't require uuid and userenv explicitly
because they're pulled in via #pragmas in the source code, mingw doesn't
support those #pragmas and needs them explicitly, which doesn't hurt the
clang-cl builds.

Differential Revision: https://phabricator.services.mozilla.com/D134737
2021-12-30 20:56:43 +00:00
Mike Hommey 73230b8c3e Bug 1744234 - Bump minimum Rust version to 1.57. r=firefox-build-system-reviewers,andi
Also update the table of Firefox requirements. It's worth noting that I
actually upgraded to 1.57 earlier than I should have (too close to
freeze), but what is done is done.

Differential Revision: https://phabricator.services.mozilla.com/D134124
2021-12-17 08:37:39 +00:00
Mike Hommey 72f163f712 Bug 1745079 - Remove INCREMENTAL_LINKER. r=firefox-build-system-reviewers,andi
It was only relevant with the MSVC linker, which we don't use anymore.

Differential Revision: https://phabricator.services.mozilla.com/D133296
2021-12-10 03:27:27 +00:00
Mike Hommey 95c3b50cea Bug 1745074 - Remove unused FILTER and IMPLIB substs. r=firefox-build-system-reviewers,andi
They are leftover from the long-gone OS/2 support.

Differential Revision: https://phabricator.services.mozilla.com/D133293
2021-12-10 03:27:26 +00:00
Mike Hommey 0343b1d227 Bug 1745069 - Remove MOZ_WEBM_ENCODER. r=bryce
It's always on and unsetting it manually in old-configure.in leads to a
busted build.

Differential Revision: https://phabricator.services.mozilla.com/D133287
2021-12-10 03:27:26 +00:00
shravanrn@gmail.com 7079358631 Bug 1744460 part 2 - Update woff2 RLBoxSandboxPool to track minimum sandbox size r=bholley
Depends on D133009

Differential Revision: https://phabricator.services.mozilla.com/D133158
2021-12-09 00:01:17 +00:00
Butkovits Atila 6ffe112d27 Backed out 2 changesets (bug 1744460) for causing build bustages at RLBoxSandboxPool.cpp. CLOSED TREE
Backed out changeset 582101d582a0 (bug 1744460)
Backed out changeset dba7b7c19b2f (bug 1744460)
2021-12-08 21:57:58 +02:00
shravanrn@gmail.com 8001ccc0fd Bug 1744460 part 2 - Update woff2 RLBoxSandboxPool to track minimum sandbox size r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D133158
2021-12-08 17:55:16 +00:00
Mozilla Releng Treescript a97268ae9e Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2021-12-06 19:18:29 +00:00
Mike Hommey e9ae64eacd Bug 1743539 - Remove -single_module from linker flags on mac. r=firefox-build-system-reviewers,mhentges
It is the default. It has been the default since at least Xcode 2.2,
from 2005. ld64 doesn't say anything, but lld warns about it.

Differential Revision: https://phabricator.services.mozilla.com/D132447
2021-11-30 21:39:50 +00:00
Deian Stefan 1ee9a841d8 Bug 1732201 - Sandbox woff2 in OTS using RLBox r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D126435
2021-11-27 23:30:49 +00:00
Cristian Tuns f0ef0360eb Backed out changeset d486edc7499b (bug 1732201) for causing web-platform-tests failures on header-totalsfntsize-001.xht CLOSED TREE 2021-11-27 07:32:22 -05:00
Deian Stefan 0a5e1f2075 Bug 1732201 - Sandbox woff2 in OTS using RLBox r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D126435
2021-11-27 04:41:21 +00:00
Mike Hommey bb2a47feb5 Bug 1742910 - Work around https://github.com/rust-lang/rust/issues/90045. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D132111
2021-11-25 21:07:45 +00:00
Sylvestre Ledru 70be2344fc Bug 1707591 - ride along - reformat the tree with black 21.10b0 r=ahal,webdriver-reviewers,perftest-reviewers,whimboo,gerard-majax,alexandru.irimovici
This changed with this:
https://github.com/psf/black/pull/1740

Depends on D130964

Differential Revision: https://phabricator.services.mozilla.com/D130965
2021-11-22 22:10:03 +00:00
Deian Stefan 86e82e1036 Bug 1688452 - Retrofit nsExpatDriver to use RLBoxed libexpat r=tjr,peterv,bholley,glandium
Differential Revision: https://phabricator.services.mozilla.com/D104658
2021-11-22 06:19:17 +00:00
Sandor Molnar 51a05715fe Backed out changeset 4294063f1606 (bug 1688452) for causing mochitest and wpt failures. CLOSED TREE 2021-11-20 13:00:27 +02:00
Deian Stefan fcd2e09518 Bug 1688452 - Retrofit nsExpatDriver to use RLBoxed libexpat r=tjr,peterv,bholley,glandium
Differential Revision: https://phabricator.services.mozilla.com/D104658
2021-11-19 21:28:53 +00:00
Alexandru Michis d4f3d0994e Backed out changeset 7893bbd002e0 (bug 1688452) for causing bustages in nsRLBoxExpatDriver.
CLOSED TREE
2021-11-19 15:54:31 +02:00
Deian Stefan 76c5d8907d Bug 1688452 - Retrofit nsExpatDriver to use RLBoxed libexpat r=tjr,peterv,bholley,glandium
Differential Revision: https://phabricator.services.mozilla.com/D104658
2021-11-19 06:08:36 +00:00
Shravan Narayan b09e58929d Bug 1742032 - Update rlbox to correctly support re-entrancy across multiple sandbox instances r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D131582
2021-11-19 04:39:12 +00:00
june wilde 420b1ebb70 Bug 1730394 - Use vendoring url in mach vendor and update moz.yamls accordingly; r=tjr
Depends on D124799

Differential Revision: https://phabricator.services.mozilla.com/D125337
2021-11-18 16:48:51 +00:00
Yoshi Cheng-Hao Huang dc0595c868 Bug 1741564 - Add icu4x dir in config/external/moz.build. r=platform-i18n-reviewers,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D131327
2021-11-17 20:22:45 +00:00
André Bargull d814742408 Bug 1738422 - Part 2: Update in-tree ICU to release 70.1. r=platform-i18n-reviewers,dminor
Update to ICU 70.1 by running "update-icu.sh" with "maint/maint-70" as the target.

Differential Revision: https://phabricator.services.mozilla.com/D129924
2021-11-16 17:02:38 +00:00
Greg Tatum 0f0b78cc1d Bug 1736907 - Add a build flag to experimentally build with ICU4X static data; r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D129080
2021-11-16 15:09:09 +00:00
Andi-Bogdan Postelnicu 1faa3d40cf Bug 1519636 - Reformat recent changes to the Google coding style. r=firefox-build-system-reviewers,mhentges,sylvestre
Reformat with clang-format version 12.0.1 (taskcluster-FYV2l5wGTseBAhiqf8cxfQ)

Differential Revision: https://phabricator.services.mozilla.com/D131114
2021-11-16 08:07:29 +00:00
Iulian Moraru 897bb9d353 Backed out 2 changesets (bug 1707591) for causing python mozlint failures on test_yaml.py. CLOSED TREE
Backed out changeset a730ab2d0dbe (bug 1707591)
Backed out changeset 0269849fd7ef (bug 1707591)
2021-11-12 18:44:36 +02:00
Sylvestre Ledru c1b5edd8be Bug 1707591 - ride along - reformat the tree with black 21.10b0 r=webdriver-reviewers,whimboo,gerard-majax
This changed with this:
https://github.com/psf/black/pull/1740

Differential Revision: https://phabricator.services.mozilla.com/D130965
2021-11-12 15:06:56 +00:00
shravanrn@gmail.com 6314f91304 Bug 1740187 - Annotate crash reports with rlbox sandbox malloc failures r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D130727
2021-11-10 00:03:25 +00:00
shravanrn@gmail.com 8288a5976f Bug 1739762 - Update rlbox_wasm2c to support variable sized sandboxes in 32-bit platforms r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D130543
2021-11-09 07:46:11 +00:00
shravanrn@gmail.com dfca79f9ba Bug 1739298 - Configure RLBox to avoid using locks as it is only used in single threaded contexts r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D130326
2021-11-04 20:49:22 +00:00
Dan Minor 241373658c Bug 1654112 - Add Xrandr.h and XTest.h to system headers. r=ng
The Linux desktop capture code now relies on these. The build will fail at the
link stage if these are not in system header wrappers.

Differential Revision: https://phabricator.services.mozilla.com/D130090
2020-12-03 07:34:49 -05:00
Mozilla Releng Treescript 8a51c9e60d Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2021-11-01 16:01:18 +00:00
shravanrn@gmail.com 011ed92913 Bug 1736171 - Update wasm2c fork to fix hunspell crash when accessing top half of heap r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D129976
2021-10-31 21:28:06 +00:00
Mike Hommey e7c4b0a805 Bug 1736459 - Disable rust lto when enabling sancov. r=truber
Differential Revision: https://phabricator.services.mozilla.com/D129482
2021-10-27 22:35:56 +00:00
Norisz Fay 51e8153e60 Backed out 5 changesets (bug 1736459) for causing Windows crashes (bug 1738034) a=backout
Backed out changeset c934eeb21692 (bug 1736459)
Backed out changeset 0b2da7db414c (bug 1736459)
Backed out changeset 798893f69a02 (bug 1736459)
Backed out changeset 2a8f412c4d08 (bug 1736459)
Backed out changeset 59eeaeafdf67 (bug 1736459)
2021-10-27 16:02:24 +03:00
shravanrn@gmail.com eb526a2eea Bug 1735935 - Configure rlbox library to call MOZ_CRASH on failure r=glandium,bholley
Differential Revision: https://phabricator.services.mozilla.com/D128544
2021-10-27 00:56:37 +00:00
shravanrn@gmail.com 0e49f3d498 Bug 1737718 - Configure wasm2c runtime to redirect crashes to MOZ_CRASH r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D129461
2021-10-27 00:55:47 +00:00
shravanrn@gmail.com 82440ca93b Bug 1737717 - Update wasm2c to report more crash info and support crash redirection r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D129460
2021-10-26 23:57:35 +00:00
shravanrn@gmail.com 2a11cb1f78 Bug 1737733 - Update rlbox wasm configuration to use direct function calls r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D128566
2021-10-26 23:41:11 +00:00
Mike Hommey e2dd5f9af6 Bug 1736459 - Disable rust lto when enabling sancov. r=truber
Differential Revision: https://phabricator.services.mozilla.com/D129482
2021-10-26 23:11:39 +00:00
Mike Hommey 9c95211ab1 Bug 1737731 - Rebuild rlbox.wasm.c when wasm2c is modified. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D129459
2021-10-26 20:52:06 +00:00
André Bargull 33694d390f Bug 1737765 - Part 1: Update tzdata in ICU data files to 2021a3. r=platform-i18n-reviewers,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D129486
2021-10-26 13:50:53 +00:00
shravanrn@gmail.com 51ce33ec46 Bug 1737700 - Update rlbox_wasm2c for fallible sandbox, static linking support r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D129456
2021-10-26 03:38:11 +00:00
André Bargull 71bb35d484 Bug 1737533 - Part 1: Update tzdata in ICU data files to 2021a2. r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D129370
2021-10-25 13:13:06 +00:00
Jesse Schwartzentruber f3cfbdb6aa Bug 1736485 - Update sancov flag for rustc 1.57 r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D128917
2021-10-20 14:39:21 +00:00
Narcis Beleuzu 66967cc3e6 Backed out 4 changesets (bug 1733686, bug 1735935) for causing sandboxing crashes with the spellchecker (bug 1736171) . CLOSED TREE
Backed out changeset c981fa4490fe (bug 1735935)
Backed out changeset a6fef4dc35c2 (bug 1733686)
Backed out changeset d52827e69092 (bug 1733686)
Backed out changeset 29ed3620fa91 (bug 1733686)
2021-10-16 18:43:13 +03:00
shravanrn@gmail.com a0bc2bce48 Bug 1735935 - Update rlbox library and configure it to call MOZ_CRASH on failure r=glandium,bholley
Differential Revision: https://phabricator.services.mozilla.com/D128544
2021-10-15 08:07:14 +00:00
Alex Hochheiden 27d675ae70 Bug 1721208 - Added a preprocessor #define for the CPU architecture in created .res files to resolve a build breakwith with Windows SDK 10.0.22000.x. r=mhentges,glandium
On SDK versions older than 10.0.22000.x we defaulted to 128, but with
this update, Microsoft removed the default and created a compiler error
if the CPU architecture was not specified. This change explicitly
defines the CPU architecture, resolving the compiler error.

Differential Revision: https://phabricator.services.mozilla.com/D128509
2021-10-14 22:06:41 +00:00
Mike Hommey 64f94bf6c9 Bug 1735455 - Make the rlbox library a more normal library. r=firefox-build-system-reviewers,andi,mhentges
The SandoxedWasmLibrary now represents the wasm static library, which
is automatically converted to C via wasm2c. The corresponding source
is handled like a normal source, and the rlbox library is generated
as a normal GeckoSharedLibrary with no xpcom linkage.

Differential Revision: https://phabricator.services.mozilla.com/D128329
2021-10-14 21:09:29 +00:00
shravanrn@gmail.com 530a9df1f6 Bug 1734421 - Update wasm2c to support better use of 32-bit virtual space r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D127727
2021-10-12 04:54:41 +00:00
Mike Hommey 4ca51203f1 Bug 1732824 - Update wasi-sdk to the latest trunk. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D126749
2021-10-06 08:56:32 +00:00
Mozilla Releng Treescript 19cb195529 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2021-10-04 18:58:55 +00:00
Mike Hommey 5245f8491f Bug 1733545 - Remove REQUIRES_UNIFIED_BUILD from third-party directories that don't need it. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D127229
2021-10-01 09:01:27 +00:00
criss 7897dc6975 Backed out 4 changesets (bug 1728934) for causing Mochitest failures. CLOSED TREE
Backed out changeset 5e64ae0a8b00 (bug 1728934)
Backed out changeset 3538237090bf (bug 1728934)
Backed out changeset a240e5a52df4 (bug 1728934)
Backed out changeset a932fbd95f01 (bug 1728934)
2021-10-01 11:49:44 +03:00
shravanrn@gmail.com 86b9273282 Bug 1728934 Part 2 - Update rlbox,wasm2c plugin for fallible create_sandbox r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D127022
2021-10-01 07:25:03 +00:00
shravanrn@gmail.com edb3953d4b Bug 1728934 Part 1 - Update wasm2c to support better use of 32-bit virtual space r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D126878
2021-10-01 07:25:02 +00:00
Robert Mader ea68cb4546 Bug 1732443 - Remove remaining XRender leftovers,r=emilio,stransky
The few cases where we still use Xlib most likely benefit little
from Xrender. Lets drop the support for it.

Differential Revision: https://phabricator.services.mozilla.com/D126970
2021-09-30 14:14:13 +00:00
André Bargull f785b509a3 Bug 1733053 - Part 1: Update tzdata in ICU data files to 2021a1. r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D126882
2021-09-30 08:32:45 +00:00
Mike Hommey fb95ccd0d4 Bug 1733017 - Remove support for INSTALL_EXTENSION_ID. r=firefox-build-system-reviewers,nalexander
Nothing uses it anymore.

Differential Revision: https://phabricator.services.mozilla.com/D126857
2021-09-29 04:04:12 +00:00
Butkovits Atila 8b745c7243 Backed out changeset 2f93c060a50c (bug 1732824) as per dev's request. CLOSED TREE 2021-09-29 04:21:35 +03:00
Robert Mader d1f9d3c317 Bug 1732436 - Link Xrandr directly instead of using dlopen, r=stransky,glandium
We already require Xrandr 1.3 inderectly through GTK3 (`>=1.2.99`).
This bumps the requirement to 1.4, which got released in 2012 and
is thus part of RHEL 7 and Ubuntu 14.04.

Differential Revision: https://phabricator.services.mozilla.com/D126581
2021-09-28 17:26:30 +00:00
Kagami Sascha Rosylight 8fa07430fe Bug 1731773 - Part 2: Add sanitizer/common_interface_defs.h to system_headers r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D126541
2021-09-28 10:54:25 +00:00
Mike Hommey f43531930b Bug 1732824 - Update wasi-sdk to the latest trunk. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D126749
2021-09-28 09:08:35 +00:00
Jeff Walden 5daf5fa679 Bug 1730275 - Move util/Windows.h to util/WindowsWrapper.h so that util/moz.build can be added in a subsequent rev without inducing <windows.h>/"Windows.h" conflicts. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D125902
2021-09-17 17:57:35 +00:00
shravanrn@gmail.com b4ac64edc4 Bug 1729232 - Update wasm2c rt to ensure correct hunspell timeout r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D125025
2021-09-09 07:40:38 +00:00
shravanrn@gmail.com 7eb566a244 Bug 1727266 - Vendor latest wasm2c rt for correct 32-bit wasi clock handling r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D124308
2021-09-09 07:40:38 +00:00
Mike Hommey 4e8e23f4e8 Bug 1729383 - Simplify the parallel build setup. r=firefox-build-system-reviewers,mhentges
Historically, client.mk was not invoked with -jn because it would create
race conditions, but that was actually mostly solved by the addition of
`.NOTPARALLEL` in bug 422986, although the mechanism of adding -jn via
`MOZ_MAKE_FLAGS` or `MOZ_PARALLEL_BUILD` has continued well past that.

Nowadays, client.mk is only invoked by mach (it will even bail out if
that's not the case) and only has one target (`build`) and no
dependencies.

This means we don't need to rely on `MOZ_PARALLEL_BUILD` to pass `-jn` in
some cases, and can just always invoke `make -f client.mk` with `-jn`, even
when we just want no parallelism, in which case we can use `-j1`.

This, in turn, allows to remove the extra allow_parallel argument to
`_run_make`, and only rely on `num_jobs`, and to remove some of the
multiple ways the `n` in `-jn` could be set.

Differential Revision: https://phabricator.services.mozilla.com/D124729
2021-09-08 00:10:22 +00:00
Mozilla Releng Treescript 781375a23c Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2021-09-06 13:14:48 +00:00
Andreea Pavel 27b5d96d4e Backed out 3 changesets (bug 1727266, bug 1727678) for causing crashtest failures on a CLOSED TREE
Backed out changeset e0132512d73b (bug 1727678)
Backed out changeset 2422edf5bb2f (bug 1727266)
Backed out changeset 210ffc911429 (bug 1727266)
2021-09-02 15:06:26 +03:00
shravanrn@gmail.com 4df03184cb Bug 1727266 - Vendor latest wasm2c rt for correct 32-bit wasi clock handling r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D124308
2021-09-02 06:45:41 +00:00
Dzmitry Malyshau c196398803 Bug 1726628 - Switch cargo resolver to 2 r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D123157
2021-09-01 21:11:33 +00:00
Yury Delendik ad2ffab089 Bug 1721686 - wasm: Generate intrinsics boilerplate code via yaml. r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D120724
2021-08-30 14:18:51 +00:00
Andi-Bogdan Postelnicu 2fc4f70e9b Bug 1725145 - Preparation for the hybrid build env. r=necko-reviewers,firefox-build-system-reviewers,valentin,glandium
Automatically generated path that adds flag `REQUIRES_UNIFIED_BUILD = True` to `moz.build`
when the module governed by the build config file is not buildable outside on the unified environment.

This needs to be done in order to have a hybrid build system that adds the possibility of combing
unified build components with ones that are built outside of the unified eco system.

Differential Revision: https://phabricator.services.mozilla.com/D122345
2021-08-25 10:46:17 +00:00
Mike Hommey 2f70492b7a Bug 1726474 - Use clang.exe to build wasm files when the clang plugin is enabled. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D123591
2021-08-25 07:39:02 +00:00
Mike Hommey ebf3e96eb4 Bug 1726474 - Update rlbox_wasm2c_sandbox and wasm2c_sandbox_compiler for mingw builds. r=shravanrn
Differential Revision: https://phabricator.services.mozilla.com/D123541
2021-08-25 07:39:02 +00:00
Mike Hommey 707032f415 Bug 1726474 - Set IMPORT_LIBRARY when building WASM_LIBRARY. r=firefox-build-system-reviewers,mhentges
MKCSHLIB, used to build WASM_LIBRARY, refers to DSO_LDOPTS, which refers
to IMPORT_LIBRARY on mingw builds, but for WASM_LIBRARY, IMPORT_LIBRARY
is never set by the build backend.

Differential Revision: https://phabricator.services.mozilla.com/D123540
2021-08-25 07:39:01 +00:00
Mike Hommey b7bcda87f0 Bug 1726474 - Always use clang-type flags when targeting wasm. r=firefox-build-system-reviewers,mhentges
The build system assumes the target compiler is of the same type as the
wasm compiler, but that's not true for wasm32-wasi, which we compile
with clang, while targeting windows, which we compile with clang-cl.
We handle the duality for host/target in a compiler-specific way, but
here, the wasm compiler is always going to be clang.

Differential Revision: https://phabricator.services.mozilla.com/D123041
2021-08-25 07:39:01 +00:00
Cosmin Sabou 1958e4b9fe Backed out 4 changesets (bug 1726474) for causing windows build bustages. CLOSED TREE
Backed out changeset c7fcc6914b7c (bug 1726474)
Backed out changeset 1dcd8069568e (bug 1726474)
Backed out changeset 938043bb1ca2 (bug 1726474)
Backed out changeset e12c90f66a6c (bug 1726474)
2021-08-24 06:12:08 +03:00
Mike Hommey 7279280783 Bug 1726474 - Always use clang-type flags when targeting wasm. r=firefox-build-system-reviewers,mhentges
The build system assumes the target compiler is of the same type as the
wasm compiler, but that's not true for wasm32-wasi, which we compile
with clang, while targeting windows, which we compile with clang-cl.
We handle the duality for host/target in a compiler-specific way, but
here, the wasm compiler is always going to be clang.

Differential Revision: https://phabricator.services.mozilla.com/D123041
2021-08-24 02:52:19 +00:00
Csoregi Natalia 84d67f5d03 Backed out 4 changesets (bug 1726474) for causing crashes. CLOSED TREE
Backed out changeset 5add6784a784 (bug 1726474)
Backed out changeset e2047ab95703 (bug 1726474)
Backed out changeset d53f62933fd0 (bug 1726474)
Backed out changeset 796a54dcb5f0 (bug 1726474)
2021-08-24 04:49:04 +03:00
Mike Hommey 0c793d860d Bug 1726474 - Always use clang-type flags when targeting wasm. r=firefox-build-system-reviewers,mhentges
The build system assumes the target compiler is of the same type as the
wasm compiler, but that's not true for wasm32-wasi, which we compile
with clang, while targeting windows, which we compile with clang-cl.
We handle the duality for host/target in a compiler-specific way, but
here, the wasm compiler is always going to be clang.

Differential Revision: https://phabricator.services.mozilla.com/D123041
2021-08-24 01:01:39 +00:00
Mike Hommey ce86abf62b Bug 1726476 - Update rlbox_wasm2c_sandbox. r=shravanrn
Differential Revision: https://phabricator.services.mozilla.com/D123023
2021-08-20 23:33:04 +00:00
Mike Hommey 2a24675e58 Bug 1726476 - Update wasm2c_sandbox_compiler. r=shravanrn
Differential Revision: https://phabricator.services.mozilla.com/D123022
2021-08-20 23:33:04 +00:00
André Bargull 0d9f3a7693 Bug 1726737 - Part 18: Disallow including jsapi.h from header files. r=arai
Except for the following two files, no other header file is still including
"jsapi.h". Add a rule to "check_spidermonkey_style.py" to make sure we don't
regress this progress.

Exceptions:
- "vm/Compartment-inl.h" still needs to include "jsapi.h" for `JS::InformalValueTypeName()`.
- "jsapi-tests/tests.h" still needs to include "jsapi.h" for `JS_ValueToSource()`.

Differential Revision: https://phabricator.services.mozilla.com/D123209
2021-08-20 18:10:39 +00:00
shravanrn@gmail.com 91f7c1ff11 Bug 1724133 - Update forked wasm2c for 32-bit perf r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D121823
2021-08-13 06:50:09 +00:00
Caroline Cullen 3a5ddd3bc7 Bug 1699271 - Part 15: Generate LIR opcodes from YAML. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D119720
2021-08-12 19:37:50 +00:00
Mike Hommey c39f6708e7 Bug 1724391 - Reset PKG_CONFIG_PATH. r=firefox-build-system-reviewers,mhentges
If it has a value set, that interferes with values we set to other
PKG_CONFIG_* variables for sysroots.

Differential Revision: https://phabricator.services.mozilla.com/D122287
2021-08-11 22:03:14 +00:00
Mike Hommey 0b4372e828 Bug 1721968 - Remove support for lucetc for rlbox. r=firefox-build-system-reviewers,shravanrn,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D120700
2021-08-11 21:58:52 +00:00
Mike Hommey d873082139 Bug 1724606 - Replace uses of MACOSX_DEPLOYMENT_TARGET env variable with -mmacosx-version-min flag. r=firefox-build-system-reviewers,andi
They are equivalent, except for the fact that MACOSX_DEPLOYMENT_TARGET
may apply to more processes in a normal build. In practice, all the
processes that matter are covered through compiler flags.

On the opposite end, MACOSX_DEPLOYMENT_TARGET isn't necessary passed in
all cases (like clangd, mach static-analysis, etc.), while compiler
flags are.

Differential Revision: https://phabricator.services.mozilla.com/D122145
2021-08-11 07:40:57 +00:00
Mozilla Releng Treescript a536ab927f Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2021-08-09 16:20:45 +00:00
shravanrn@gmail.com ac42d89404 Bug 1723447 - Get latest rlbox, wasm2c plugin, rt, compiler for 32bit platform support r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D121503
2021-08-04 21:37:45 +00:00
Mike Hommey 0b8879cf79 Bug 1723107 - Generate breadpad symbol files for librlbox. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D121359
2021-08-02 22:19:47 +00:00
Mike Hommey 5fafbc14fe Bug 1721962 - Remove dependency on pangocairo and pangoft2. r=firefox-build-system-reviewers,andi
pangocairo hasn't been used since bug 810252.
pangoft2 doesn't seem to have ever actually been used.

Differential Revision: https://phabricator.services.mozilla.com/D121304
2021-07-30 11:39:37 +00:00
shravanrn@gmail.com a4b362c73c Bug 1721765 part 2 - Use larger unsafe stack for hunspell wasm sandbox r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D120571
2021-07-30 11:19:31 +00:00
shravanrn@gmail.com 820196c2ad Bug 1721765 part 1 - Vendor new wasm2c rlbox plugin, compiler+rt to support large unsafe stack r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D120570
2021-07-30 11:19:31 +00:00
Mike Hommey 023ce9967d Bug 1582382 - Move rust malloc and oom hook to mozglue. r=firefox-build-system-reviewers,andi
This is similar to what was done in bug 1594998 for the panic hook.

Differential Revision: https://phabricator.services.mozilla.com/D121032
2021-07-28 20:33:08 +00:00
Mike Hommey 2979d0b082 Bug 1635327 - Disable __tls_get_addr interception in sanitizer builds. r=firefox-build-system-reviewers,emilio,andi
Sanitizers try to intercept __tls_get_addr to find DTLS blocks. In some
cases, they fail miserably with a crash. And in the cases they don't
crash, they don't seem to actually work properly anyways.

This affects both build time when running host programs compiled with
sanitizer flags (this only actually affects rust build
scripts/procedural macros on non-cross builds, not C/C++ host programs),
and execution time, e.g. when running tests.

Differential Revision: https://phabricator.services.mozilla.com/D120574
2021-07-22 22:00:59 +00:00
shravanrn@gmail.com dd5e1be54b Bug 1720817 - Fix vendor git rev id to match vendored files for wasm2c project r=glandium DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D120048
2021-07-16 03:57:07 +00:00
Sandor Molnar 6203809190 Bug 1713735 - lint fix. CLOSED TREE 2021-07-16 06:03:39 +03:00
Mike Hommey e2a1db5178 Bug 1713735 - Add the bits necessary to build wasm sandbox libs with wasm2c. r=firefox-build-system-reviewers,mhentges
For the moment, it's opt-in via explicitly setting `LUCETC` to an empty
string.

Differential Revision: https://phabricator.services.mozilla.com/D119939
2021-07-16 02:38:41 +00:00
shravanrn@gmail.com 5bd8cbb171 Bug 1713735 part 3 - Include rlbox_wasm2c_sandbox repo in the mozilla tree r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D117386
2021-07-16 02:38:41 +00:00
shravanrn@gmail.com c90a46987f Bug 1713735 part 2 - Configs to build wasm2c for use in rlbox r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D116442
2021-07-16 02:38:40 +00:00
Mike Hommey b3a25bc860 Bug 1720641 - Don't include mozalloc.h from the cmath wrapper. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D119956
2021-07-15 20:41:54 +00:00
Mozilla Releng Treescript abd155b8ec Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2021-07-12 12:48:42 +00:00
Mike Hommey 6bb2a4bab5 Bug 1713735 - Only build rlbox_lucet_sandbox when wasm-sandboxing is enabled. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D119479
2021-07-09 20:49:29 +00:00
André Bargull b0a94f02a6 Bug 1685075 - Part 2: Remove "en-US-posix" locale from ICU data file. r=zbraniecki
The filter file doesn't support exclusion lists for the "locales" filter type
(<https://github.com/unicode-org/icu/blob/main/docs/userguide/icu_data/buildtool.md#filtering-by-locale>),
therefore we have to manually exclude "en-US-posix" from the relevant resource
types: "en-US-posix" data is only present for collation, locales, and break
iteration. Break iteration is already completely stripped from the data file,
so we don't need to change anything on that front.

The string must be "en_US_POSIX" to match the resource file name, also see
<https://unicode-org.atlassian.net/browse/ICU-21400>.

Depends on D117975

Differential Revision: https://phabricator.services.mozilla.com/D117976
2021-06-18 09:22:06 +00:00
Henri Sivonen b5366f5a31 Bug 1716709 - Remove RUSTC_BOOTSTRAP for xmldecl. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D117980
2021-06-17 06:44:25 +00:00
André Bargull 3fe14705b6 Bug 1697729: Re-add alias and parent links in ICU filters. r=tcampbell
The `-/*` filter also removes the alias (`%%ALIAS`) and parent locale (`%%Parent`)
links, so we have to manually add them back when we're using `-/*`.

The ICU docs warn about this issue, but unfortunately that warning wasn't
present when we originally created our filter file, so this bug went unnoticed
for a long time.

Differential Revision: https://phabricator.services.mozilla.com/D116981
2021-06-16 06:49:45 +00:00
Mike Hommey 7f9a51a8f5 Bug 1715282 - Bump minimum Rust version to 1.51. r=firefox-build-system-reviewers,andi
Also update the estimated rust versions for future releases, based on
the updated Firefox release dates.

Differential Revision: https://phabricator.services.mozilla.com/D117737
2021-06-15 09:23:20 +00:00
André Bargull e3d2b6377c Bug 1714933 - Part 2: Update in-tree ICU to release 69.1. r=tcampbell
Update to ICU 69.1 by running "update-icu.sh" with "maint/maint-69" as the target.

Differential Revision: https://phabricator.services.mozilla.com/D116968
2021-06-15 07:53:58 +00:00
Noemi Erli ce2801c88f Backed out 8 changesets (bug 1714933) for causing build bustages in 1659595.js CLOSED TREE
Backed out changeset 2f72875b300f (bug 1714933)
Backed out changeset a42831b46643 (bug 1714933)
Backed out changeset c7ccabae5816 (bug 1714933)
Backed out changeset a4f4e4026174 (bug 1714933)
Backed out changeset fca960ad267b (bug 1714933)
Backed out changeset 62bdba475376 (bug 1714933)
Backed out changeset f168a2d1d391 (bug 1714933)
Backed out changeset 85af7c63b9c5 (bug 1714933)
2021-06-14 23:47:43 +03:00
André Bargull 0b804a59a3 Bug 1714933 - Part 2: Update in-tree ICU to release 69.1. r=tcampbell
Update to ICU 69.1 by running "update-icu.sh" with "maint/maint-69" as the target.

Differential Revision: https://phabricator.services.mozilla.com/D116968
2021-06-14 19:46:50 +00:00
Butkovits Atila c9d6eddfc2 Backed out 7 changesets (bug 1714933) for causing failures on test_ManifestProcessor_lang.html
Backed out changeset 2b4a65b9c1ac (bug 1714933)
Backed out changeset 40c329123b7c (bug 1714933)
Backed out changeset 692101de3873 (bug 1714933)
Backed out changeset 695f3bd8e875 (bug 1714933)
Backed out changeset 30e9aacecf56 (bug 1714933)
Backed out changeset e9f2a0d262c2 (bug 1714933)
Backed out changeset 3de963fab6d6 (bug 1714933)
2021-06-14 19:46:45 +03:00
André Bargull d165d44525 Bug 1714933 - Part 2: Update in-tree ICU to release 69.1. r=tcampbell
Update to ICU 69.1 by running "update-icu.sh" with "maint/maint-69" as the target.

Differential Revision: https://phabricator.services.mozilla.com/D116968
2021-06-14 13:12:59 +00:00
André Bargull b104468eb1 Bug 1686052 - Part 4: Update tzdata in ICU data files to 2021a. r=jwalden
ICU 68.2 ships with tzdata 2020d, so update again to 2021a.

Differential Revision: https://phabricator.services.mozilla.com/D101391
2021-06-04 17:42:19 +00:00
André Bargull 50a541b708 Bug 1686052 - Part 3: Update in-tree ICU to release 68.2. r=jwalden
Update to ICU 68.2 by running "update-icu.sh" with "maint/maint-68" as the target.

Differential Revision: https://phabricator.services.mozilla.com/D101389
2021-06-04 17:42:10 +00:00
Mike Hommey 2733dbe0dc Bug 1713733 - Remove WASM_LDFLAGS. r=firefox-build-system-reviewers,mhentges
It's not practically make a difference (the flags we end up setting it
to don't do anything when linking all the wasm files into one).

Differential Revision: https://phabricator.services.mozilla.com/D116437
2021-06-02 04:34:20 +00:00
André Bargull 3d58656e00 Bug 1693575 - Part 3: Implement support for "calendar" option. r=tcampbell
This last part to support "calendar" requires a bit more code.

`GetCalendarDisplayName()` performs the following steps:
1. Validate the input matches the `type` nonterminal, per
   CanonicalCodeForDisplayNames, step 4.a.
2. Then convert it to lower case, because ICU expects lower case names and it
   needs to be in lower case for `LanguageTag::replaceUnicodeExtensionType()`.
3. Replace calendar name aliases with the preferred name, e.g. use "ethioaa"
   instead of "ethiopic-amete-alem".
4. Check the input isn't too large, just in case ICU somehow doesn't properly
   handle large string inputs.
5. Retrieve the old-style value of the calendar name, for example "gregorian"
   for the calendar name "gregory".
6. And finally call `uldn_keyValueDisplayName` to search for the localised name.

Our ICU data file doesn't yet include calendar names. To include calendar names
we need to enable them in "data_filter.json", rebuild the ICU data file, and
then reapply the update for tzdata 2021a. (Reapplying the tzdata changed
"intl/tzdata/GIT-INFO", but otherwise didn't change any time zone files.)

Adding the calendar names to the ICU data file results in a slight increase of
the overall data file size (79,184 bytes).

The existing "calendar.js" test file was renamed to "month-calendar.js", so
the test file for the new "calendar" type can be named "calendar.js".

Differential Revision: https://phabricator.services.mozilla.com/D116008
2021-06-01 07:45:44 +00:00
Mozilla Releng Treescript e9eb869e90 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2021-05-31 17:00:15 +00:00
Steve Fink 7c81b89a18 Bug 1713212 - Add a check to prevent mozilla/Unused.h from being included r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D116170
2021-05-28 21:41:33 +00:00
carolinecullen c5a2828bfc Bug 1699271 - Part 1: Generate MIR Opcodes. r=jandem,iain
Differential Revision: https://phabricator.services.mozilla.com/D111043
2021-05-27 22:55:30 +00:00
Mike Hommey d85b55ac8e Bug 1712947 - Don't pass neon flags to rustc when using thumbv7neon targets. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D116067
2021-05-27 21:36:34 +00:00
Chris Fallin 9e6185bf59 Bug 1706949 part 13 - Fix icu and intl for wasi. r=anba,glandium
Differential Revision: https://phabricator.services.mozilla.com/D113218
2021-05-26 06:44:09 +00:00
Agi Sferro 114966c6e0 Bug 1701269 - Remove mobile/android/base. r=nalexander,flod,owlish
Differential Revision: https://phabricator.services.mozilla.com/D109918
2021-05-20 22:03:03 +00:00
Dan Minor 0452666d00 Bug 1701695 - Add NumberFormat::TryCreate; r=tcampbell
This adds a fallible factory method to create new NumberFormat instances. This
allows us to report initialization errors at time of initialization, rather than
when format is called, and remove internal checks in the implementation for
successful initialization.

The existing fluent code assumes that creating a NumberFormat instance always
succeeds. This patch updates that code to handle failures.

Differential Revision: https://phabricator.services.mozilla.com/D114593
2021-05-12 17:22:51 +00:00
Dan Minor 5f755ac1ab Bug 1701695 - Use intl::NumberFormatterSkeleton in PluralRules r=tcampbell
This temporarily adds intl::NumberFormatterSkeleton to the public API so that
we can use it in PluralRules. This allows us to remove the SpiderMonkey
NumberFormatterSkeleton implementation when we convert SpiderMonkey to use
intl::NumberFormat.

We can remove intl::NumberFormatterSkeleton from the public API when we
implement intl::PluralRules in Bug 1704509.

Differential Revision: https://phabricator.services.mozilla.com/D111887
2021-05-12 17:22:50 +00:00
Brindusan Cristian efd8dfd0cf Backed out 9 changesets (bug 1701695) for causing xpcshell failures in test_messagecontext.js. CLOSED TREE
Backed out changeset e88dd41c0a90 (bug 1701695)
Backed out changeset 823ed70ef5fe (bug 1701695)
Backed out changeset 11f97bc74622 (bug 1701695)
Backed out changeset fdf12ac55593 (bug 1701695)
Backed out changeset abcf774d3b58 (bug 1701695)
Backed out changeset 4239fe67d69f (bug 1701695)
Backed out changeset 216472b634b9 (bug 1701695)
Backed out changeset 89ff5f91d8e9 (bug 1701695)
Backed out changeset 9c0dbc73dad2 (bug 1701695)
2021-05-11 15:25:46 +03:00
Dan Minor 7a648a32c3 Bug 1701695 - Add NumberFormat::TryCreate; r=tcampbell
This adds a fallible factory method to create new NumberFormat instances. This
allows us to report initialization errors at time of initialization, rather than
when format is called, and remove internal checks in the implementation for
successful initialization.

The existing fluent code assumes that creating a NumberFormat instance always
succeeds. This patch updates that code to handle failures.

Differential Revision: https://phabricator.services.mozilla.com/D114593
2021-05-11 11:37:40 +00:00
Dan Minor 3322d3ceb6 Bug 1701695 - Use intl::NumberFormatterSkeleton in PluralRules r=tcampbell
This temporarily adds intl::NumberFormatterSkeleton to the public API so that
we can use it in PluralRules. This allows us to remove the SpiderMonkey
NumberFormatterSkeleton implementation when we convert SpiderMonkey to use
intl::NumberFormat.

We can remove intl::NumberFormatterSkeleton from the public API when we
implement intl::PluralRules in Bug 1704509.

Differential Revision: https://phabricator.services.mozilla.com/D111887
2021-05-11 11:37:38 +00:00
Mike Hommey d9c58f174d Bug 1707829 - Go back to building http3server as a rust program. r=necko-reviewers,kershaw
This mostly revert bug 1616238.

Differential Revision: https://phabricator.services.mozilla.com/D113485
2021-05-07 20:22:56 +00:00
Mike Hommey 42db02783f Bug 1709994 - More consistently set MOZ_CARGO_WRAP_LDFLAGS. r=firefox-build-system-reviewers,mhentges
- We can and actually should remove the -fsanitize=% flags consistently
  on all cargo targets, not only programs, but because of limitations in
  cargo we can't really do that everywhere. We do need it for TSAN,
  though.
- Because of the above, we actually don't need to single-out NATIVE_TSAN
  builds anymore.
- The comment regarding the initial filtering of MOZ_CARGO_WRAP_LDFLAGS
  somehow got separated from where it's happening, so we move it back to
  where it belongs.

Differential Revision: https://phabricator.services.mozilla.com/D114579
2021-05-07 20:22:55 +00:00
Sandor Molnar 93e6afe93a Backed out changeset bd2c9d3fa4b0 (bug 1707829) for causing xpc failures. CLOSED TREE 2021-05-07 01:58:43 +03:00
Mike Hommey eae232636b Bug 1707829 - Go back to building http3server as a rust program. r=necko-reviewers,kershaw
This mostly revert bug 1616238.

Differential Revision: https://phabricator.services.mozilla.com/D113485
2021-05-06 21:37:01 +00:00
Kagami Sascha Rosylight 046e7fa5e8 Bug 1707590 - Part 1: Add vendored libjxl source r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D113358
2021-05-06 02:00:55 +00:00
Noemi Erli 13aa18b8d4 Backed out 4 changesets (bug 1707590) for causing gtest crashes CLOSED TREE
Backed out changeset 3bd322893127 (bug 1707590)
Backed out changeset 8cc3eaf728b6 (bug 1707590)
Backed out changeset 21f41a9df048 (bug 1707590)
Backed out changeset 3201d860afef (bug 1707590)
2021-05-06 04:57:44 +03:00
Kagami Sascha Rosylight 626cb0e6e1 Bug 1707590 - Part 1: Add vendored libjxl source r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D113358
2021-05-06 01:14:20 +00:00
Noemi Erli 3487bbd1ee Backed out 4 changesets (bug 1707590) for causing gtest crashes CLOSED TREE
Backed out changeset 6edab66fe2c5 (bug 1707590)
Backed out changeset e5d2d6824408 (bug 1707590)
Backed out changeset 9c7204c3f03c (bug 1707590)
Backed out changeset 25da391baa22 (bug 1707590)
2021-05-06 02:07:42 +03:00
Kagami Sascha Rosylight 42b950a045 Bug 1707590 - Part 1: Add vendored libjxl source r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D113358
2021-05-05 21:44:06 +00:00
Csoregi Natalia df171582fd Backed out 4 changesets (bug 1707590) for causing gtest crashes. CLOSED TREE
Backed out changeset fec7b65cc3d7 (bug 1707590)
Backed out changeset 3a7e5c98dd13 (bug 1707590)
Backed out changeset 9dfd0d516062 (bug 1707590)
Backed out changeset 9ab607973f20 (bug 1707590)
2021-05-05 22:23:06 +03:00
Kagami Sascha Rosylight 784f1185b9 Bug 1707590 - Part 1: Add vendored libjxl source r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D113358
2021-05-05 17:33:52 +00:00