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

5894 Коммитов

Автор SHA1 Сообщение Дата
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