Commit Graph
6927 Commits
Author SHA1 Message Date
velzie 673a67963e initial commit for wasm work 2026-06-15 19:20:19 -04:00
Emilio Cobos Álvarez 981315dfa3 No bug - Remove stale comment.
Modelines have been removed across the tree.

Differential Revision: https://phabricator.services.mozilla.com/D306311
2026-06-12 02:13:56 +00:00
Geoff Lankow 6fc27be96c Bug 2045814 - Allow macOS aarch64-only artifact builds. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D305423
2026-06-11 00:27:20 +00:00
Alex Hochheiden 0573170c70 Bug 2038789 - Add PP_FILES_EXTRA_DEPS and use it for platform.ini and AppConstants.sys.mjs r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D303465
2026-06-10 19:51:35 +00:00
Daniel Darnell cd43a43f18 Bug 2005200 - Make Thunderbird langpacks depend on correct Thunderbird epoch. r=releng-reviewers,jcristau
Differential Revision: https://phabricator.services.mozilla.com/D305463
2026-06-10 01:16:17 +00:00
Jamie Nicol 83d6b558af Bug 2043320 - Support response_file_contents for GN actions in gn_processor.py. r=glandium
Some GN actions pass large lists of input files through a response file
rather than directly on the command line. We need to support this in
order to build ANGLE with moz.build files generated by gn_processor.py.

The only case we currently need to support is ANGLE's
angle_program_version_id action. The response_file_contents field in
this case is a list of relative paths from the GN gen dir to files in
the source tree, but the action is executed at build time with a cwd in
the objdir. At vendor time, gn_processor.py cannot know the eventual
source directory, object directory, or relative path between the two.

To handle this, gn_processor.py encodes those paths into a vendored
.rsp.in sidecar file using mozbuild-style path prefixes. At build time,
a new write_path_list.py action converts the .rsp.in file into a real
response file in the objdir, resolving those prefixes to absolute paths
and shell-quoting them as required by GN's response file format. A
second GeneratedFile invokes the original action via the existing
file_generate_wrapper.py entry point, substituting the
{{response_file_name}} placeholder in the action's args with the path of
the generated response file.

Since response file contents can vary between build configurations,
the .rsp.in filename includes a hash of its contents so that each
distinct variant has a unique name and all can coexist in-tree. Where
the .rsp.in differs between configurations, the moz.build writer emits
the GeneratedFile statements that generate the real response file
conditionally.

The `GeneratedFiles` context attr is now stored as a list so that a GN
action can produce both the response file and the action output. The
stale generated-file cleanup is also updated to retain these extra
sidecar files while still removing stale generated outputs.

Additionally, we must make the raw project.json path rewriting more
specific. The previous broad target_dir replacements could modify paths
in response_file_contents and make them point at files that do not
exist.

Note that a response file can technically contain arbitrary data, but
this currently only supports the case where it is a list of paths. If we
need to support arbitrary response file contents in the future then this
will need to be adapted.

Differential Revision: https://phabricator.services.mozilla.com/D300873
2026-06-09 05:34:23 +00:00
Josh Aas dbf4722caa Bug 2043667 - Use a complete and consistent list of languages compiled to binaries. r=padenot,ai4dev-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D303405
2026-06-03 13:24:10 +00:00
Dan Mosedale 73620ff460 Bug 2018245 - Give firefox-devtools-mcp better defaults r=ai4dev-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D294087
2026-06-02 07:19:43 +00:00
Alex Hochheiden c6199915be Bug 2038789 - Add EXTRA_LINK_DEPS for declaring linker input files r=firefox-build-system-reviewers,sergesanspaille
Linker inputs referenced only through `LDFLAGS` are
invisible to the build backend, so make can run the
link before those files exist. Add `EXTRA_LINK_DEPS`
to declare those inputs explicitly, and use it for
the macOS updater plist files.

Differential Revision: https://phabricator.services.mozilla.com/D302162
2026-06-01 20:49:47 +00:00
Alex Hochheiden 9546d39834 Bug 2038789 - Add extra_deps to GeneratedFile for hidden runtime prereqs, and use it for application.ini r=firefox-build-system-reviewers,sergesanspaille
Some `GeneratedFile` scripts open additional files at runtime
(e.g. #include @TOPOBJDIR@/...), so backends need a way to
declare those as prerequisites without passing them as
positional args.

Also normalizes the `_target_per_file` key to an absolute
path so `GENERATED_FILES` dependencies that cross directory
boundaries actually resolve.

Differential Revision: https://phabricator.services.mozilla.com/D302161
2026-06-01 20:49:44 +00:00
Alex Hochheiden dddf950d42 Bug 2038789 - Replace JSSHELL_BINS with a JS_SHELL_ARCHIVE_FILES moz.build primitive r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D300878
2026-06-01 20:49:41 +00:00
Atila Butkovits 57580e540b Revert "Bug 2018245 - Give firefox-devtools-mcp better defaults r=ai4dev-reviewers,padenot" for causing failures at test_devtools_mcp.py.
This reverts commit b207c82cd9.
2026-06-01 18:07:01 +00:00
Dan Mosedale b207c82cd9 Bug 2018245 - Give firefox-devtools-mcp better defaults r=ai4dev-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D294087
2026-06-01 17:17:08 +00:00
Atila Butkovits 0f83429bd7 Revert "Bug 2018245 - Give firefox-devtools-mcp better defaults r=ai4dev-reviewers,padenot" for causing failures at test_devtools_mcp.py.
This reverts commit a7ecdc80fe.
2026-06-01 17:07:49 +00:00
Dan Mosedale a7ecdc80fe Bug 2018245 - Give firefox-devtools-mcp better defaults r=ai4dev-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D294087
2026-06-01 16:32:55 +00:00
Jonathan Watt 7cae31af0b Bug 2043912. Generate .clangd in both the source and object directory. r=aryx
This is part of fixing clangd indexing for out-of-tree object
directories. For example:

mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj/$(basename $PWD)-no-opt

The problem is that clangd (at least in VSCode) doesn't index files
outside the project root(s). You can add directories as extra project
roots, but it will still fail to index them, since when it walks up the
parent directory chain it won't encounter the .clangd that `mach ide
vscode` creates at the root of the source directory.

This patch does two things:

  - When the .clangd file is created in the root of the source
    directory, it also copies it to the root of the object directory.

  - It protects the .clangd file in the object directory from being
    removed during a clobber, since users aren't going to know they'd
    need to make a manual intervention to restor it, or to re-run `mach
    ide vscode`, which wouldn't be great anyway).

Having a copy of .clangd in the object directory is harmless for in-tree
object directories, so no effort is make to avoid that.

Differential Revision: https://phabricator.services.mozilla.com/D303661
2026-06-01 13:10:54 +00:00
Jonathan Watt e414aaaa34 Bug 2043910. Don't throw away the clangd index when clobbering. r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D303656
2026-06-01 13:10:51 +00:00
Max Emig 347c40d15f Bug 2041134 - Fix invalid Thunderbird tarball sourcestamp.txt regression. r=ahochheiden,sking,dandarnell
Differential Revision: https://phabricator.services.mozilla.com/D303205
2026-05-29 20:39:10 +00:00
Heitor Neiva b631498c8f Bug 1812480 - Change Mac pkgs contents mode r=spohl,releng-reviewers,bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D291640
2026-05-28 21:19:58 +00:00
Marco Castelluccio 69f4cfdc8d Bug 2041157 - Track per-manifest skip-if metadata in ReftestManifest.manifests. r=ahal
Track include_skip_if (the skip condition inherited from the enclosing
include directive) and tests_skip_if (AND-accumulated from all protocol-URL
test lines in the manifest) for each visited manifest path.

Differential Revision: https://phabricator.services.mozilla.com/D302340
2026-05-27 09:12:47 +00:00
serge-sans-paille 91ce4472e9 Bug 2042114 - Only increase mach static-analysis processed file count upon successful match r=sylvestre
Otherwise some lines that contain the clang-tidy pattern are
incorrectly counted as processed file lines.

Differential Revision: https://phabricator.services.mozilla.com/D302299
2026-05-25 21:13:21 +00:00
Alex Hochheiden 04b0d53cc5 Bug 2038789 - Migrate locale-manifest.in recipe to locale_manifest action r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D300067
2026-05-25 15:58:24 +00:00
Alex Hochheiden 82b2a716c1 Bug 2038789 - Migrate make-sourcestamp-file recipe to make_sourcestamp_file action r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D299940
2026-05-25 15:58:21 +00:00
Cosmin Sabou bf9e72f148 Revert "Bug 2038789 - Migrate locale-manifest.in recipe to locale_manifest action r=firefox-build-system-reviewers,sergesanspaille" for causing macosx64-rusttests/debug build bustages.
This reverts commit 428bc19014.

Revert "Bug 2038789 - Migrate `make-sourcestamp-file` recipe to `make_sourcestamp_file` action r=firefox-build-system-reviewers,sergesanspaille"

This reverts commit 1e229bf258.

Revert "Bug 2038789 - Move `PKG_LANGPACK_PATH` from `package-name.mk` to `toolkit/moz.configure` r=firefox-build-system-reviewers,sergesanspaille"

This reverts commit acedf1e8c8.

Revert "Bug 2038789 - Move format package args from `upload-files.mk` to `toolkit/moz.configure` r=firefox-build-system-reviewers,sergesanspaille"

This reverts commit 60ce7c8dfc.
2026-05-23 09:21:27 +00:00
Alex Hochheiden 428bc19014 Bug 2038789 - Migrate locale-manifest.in recipe to locale_manifest action r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D300067
2026-05-23 00:07:49 +00:00
Alex Hochheiden 1e229bf258 Bug 2038789 - Migrate make-sourcestamp-file recipe to make_sourcestamp_file action r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D299940
2026-05-23 00:07:47 +00:00
Atila Butkovits 992f182153 Revert "Bug 2038789 - Migrate locale-manifest.in recipe to locale_manifest action r=firefox-build-system-reviewers,sergesanspaille" as per request.
This reverts commit 88a8166034.

Revert "Bug 2038789 - Migrate `make-sourcestamp-file` recipe to `make_sourcestamp_file` action r=firefox-build-system-reviewers,sergesanspaille"

This reverts commit 8b1f9bbf53.

Revert "Bug 2038789 - Move `PKG_LANGPACK_PATH` from `package-name.mk` to `toolkit/moz.configure` r=firefox-build-system-reviewers,sergesanspaille"

This reverts commit 69cffbf488.

Revert "Bug 2038789 - Move format package args from `upload-files.mk` to `toolkit/moz.configure` r=firefox-build-system-reviewers,sergesanspaille"

This reverts commit 37574d1c07.
2026-05-22 20:16:56 +00:00
Alex Hochheiden 88a8166034 Bug 2038789 - Migrate locale-manifest.in recipe to locale_manifest action r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D300067
2026-05-22 19:02:23 +00:00
Alex Hochheiden 8b1f9bbf53 Bug 2038789 - Migrate make-sourcestamp-file recipe to make_sourcestamp_file action r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D299940
2026-05-22 19:02:21 +00:00
rperta c983b985e4 Revert "Bug 1812480 - Switch mac pkg source to repackaged instead of iscript r=releng-reviewers,taskgraph-reviewers,ahal" for causing Beetmover repackages build bustages
This reverts commit 454142c389.

Revert "Bug 1812480 - Change Mac pkgs contents mode r=spohl,releng-reviewers,bhearsum"

This reverts commit 1a92842445.
2026-05-22 13:27:46 +00:00
Alex Hochheiden 56dd53bd1b Bug 2038789 - Emit install-manifest rules from the backend instead of Makefile.in r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D299842
2026-05-22 02:32:30 +00:00
Alex Hochheiden d04178dec5 Bug 2038789 - Migrate INNER_MAKE_PACKAGE from upload-files.mk to mozbuild.action.package r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D299840
2026-05-22 02:32:27 +00:00
Alex Hochheiden d8d44a3df4 Bug 1281618 - Move WebIDL binding sources from Makefile.in to backend.mk r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D299932
2026-05-22 02:32:19 +00:00
Heitor Neiva 1a92842445 Bug 1812480 - Change Mac pkgs contents mode r=spohl,releng-reviewers,bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D291640
2026-05-21 19:22:53 +00:00
rperta 3a7b8eaf95 Revert "Bug 1812480 - Switch mac pkg source to repackaged instead of iscript r=releng-reviewers,taskgraph-reviewers,ahal" for causing gecko decision failures
This reverts commit e40679fc71.

This reverts commit 9d0a9a94b7.
2026-05-19 23:48:56 +00:00
Heitor Neiva 9d0a9a94b7 Bug 1812480 - Change Mac pkgs contents mode r=spohl,releng-reviewers,bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D291640
2026-05-19 23:39:43 +00:00
Paul Adenot bf2ce77127 Bug 2038942 - Update macOS SDK to 26.5, previous one is now 403. r=firefox-build-system-reviewers,ahal,sergesanspaille
build test

Differential Revision: https://phabricator.services.mozilla.com/D300009
2026-05-18 16:13:56 +00:00
Cosmin Sabou d99378935e Revert "Bug 2038942: apply code formatting via Lando" for busting gecko decision task.
This reverts commit 5e22dd09ed.

Revert "Bug 2038942 - Update macOS SDK to 26.5, previous one is now 403. r=firefox-build-system-reviewers,ahal,sergesanspaille"

This reverts commit aeec1ac9fb.

Revert "Bug 2038942 - Fix deprecated openssl usage. r=firefox-build-system-reviewers,sergesanspaille"

This reverts commit 0bd0e17399.
2026-05-18 12:38:26 +00:00
Paul Adenot aeec1ac9fb Bug 2038942 - Update macOS SDK to 26.5, previous one is now 403. r=firefox-build-system-reviewers,ahal,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D300009
2026-05-18 12:22:01 +00:00
Thomas Wisniewski d47074c333 Bug 2038528 - part 1: build-system changes to support generating css/js files to bundle with the webcompat addon during build-time; r=nalexander"
Differential Revision: https://phabricator.services.mozilla.com/D299610
2026-05-15 21:03:16 +00:00
Mike Hommey ae266a8fd5 Bug 2038215 - Remove some files cargo vendors for idempotence across cargo versions. r=firefox-build-system-reviewers,ahochheiden
This is derived from the code that was removed in bug 2011354.

Differential Revision: https://phabricator.services.mozilla.com/D300481
2026-05-15 03:58:48 +00:00
Emilio Cobos Álvarez 622d07ea60 Bug 2038826 - Simplify clangd configuration. r=botond
Stop enforcing some configuration via CLI so that it can get overridden
by local config, and remove a lot of options which match the default
values anyways:

 * `--clang-tidy` defaults to true if there's a `.clang-tidy` file
   (created right above the code I'm touching).

 * `--pch-storage` defaults to `disk`: https://github.com/llvm/llvm-project/blob/fb66f2d7086764bfd91e3f32e36e5112f53c98c1/clang-tools-extra/clangd/tool/ClangdMain.cpp#L406

 * `--background-index` defaults to `true`: https://clangd.llvm.org/config.html#background

 * `--all-scopes-completion` defaults to `true`: https://clangd.llvm.org/config.html#completion

Differential Revision: https://phabricator.services.mozilla.com/D299905
2026-05-13 13:23:07 +00:00
Andreas Farre 50cbeb6191 Bug 2038894 - Look at registered compiler cache when generating compile_commands.json r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D299966
2026-05-13 06:18:03 +00:00
Andrew McCreight ec52548564 Bug 2038355 - Fix Firefox Build System::Source Code Analysis BUG_COMPONENTs. r=firefox-static-analysis-reviewers,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D299497
2026-05-12 16:28:32 +00:00
Tymur Boiko ff3015428a Bug 2035749 - Include vulkantest in Linux artifact package patterns. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D299088
2026-05-11 08:42:33 +00:00
Alex Hochheiden 859e07cdbb Bug 2033123 - Allow setting output_category for {Host}RustProgram r=nalexander,sergesanspaille
This follows the same pattern as `SharedLibrary` and `RustLibrary`,
letting us exclude a Rust program from the default build and build
it on demand via `./mach build <category>`.

Differential Revision: https://phabricator.services.mozilla.com/D292597
2026-05-11 06:35:19 +00:00
Alex Hochheiden 236a5b3aae Bug 2035575 - Replace --maven-zip with general-purpose --artifact-filter for artifact downloads r=nalexander,firefox-build-system-reviewers
`--maven-zip` was hardcoded to download `target.maven.zip` and nothing
else. Generalize it to `--artifact-filter`, which accepts arbitrary
artifact paths (e.g. `public/build/target.maven.zip`) and can be
specified multiple times. The fat-aar caller switches to the new flag
with no behavioral change.

Differential Revision: https://phabricator.services.mozilla.com/D292608
2026-05-11 06:35:15 +00:00
Mark Hammond 87b49470b3 Bug 2037734 - prevent 'mach vendor' from creating duplicate file entries in moz.build. r=tjr
When vendoring, fetch_and_unpack keeps in-tree moz.build files but then
copy_contents overwrites them with the upstream versions (which in this
case already list the source files).
When these files were first vendored, stub.cpp was "new" from VCS perspective.
update_moz_build then calls add_file_to_moz_build_file for it,
then appends the file even though it already exists.

This also means that when the same vendor re-runs, the files are no longer "new",
so that code doesn't run. As a result, the duplicates are removed on subsequent vendors -
ie, executing the exact same "vendor" command twice ends up with different trees,
which is clearly not the intent.

Differential Revision: https://phabricator.services.mozilla.com/D299026
2026-05-11 02:48:28 +00:00
Alexandru Marc 770110e8ec Revert "Bug 2035575 - Replace --maven-zip with general-purpose --artifact-filter for artifact downloads r=nalexander,firefox-build-system-reviewers"
This reverts commit 34156e0060.
2026-05-09 08:38:41 +00:00
Alexandru Marc d3c37c87b8 Revert "Bug 2033123 - Allow setting output_category for {Host}RustProgram r=nalexander,sergesanspaille"
This reverts commit 548f639400.
2026-05-09 08:38:39 +00:00