Commit Graph

5906 Commits

Author SHA1 Message Date
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