Commit Graph
6152 Commits
Author SHA1 Message Date
Emilio Cobos Álvarez d45bdf685a Bug 1916043 - Don't try to run clangd for artifact builds. r=sergesanspaille
This fixes the bad caller.

Differential Revision: https://phabricator.services.mozilla.com/D220802
2024-09-04 07:23:14 +00:00
Kagami Sascha Rosylight 0329f8e784 Bug 1915182 - Add clang-tidy for aarch64 Windows r=glandium,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D220276
2024-08-28 06:29:16 +00:00
serge-sans-paille 7488ef3f8a Bug 1912993 - Remove reference to autoconfmk in js/src/old-configure.in r=glandium
And accordingly remove reference to autoconfmk now that it's no longer
parametric.

Differential Revision: https://phabricator.services.mozilla.com/D219115
2024-08-28 05:29:28 +00:00
serge-sans-paille 5d6ec34b3a Bug 1907538 - Add metavar support to moz.configure options r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D216401
2024-08-15 23:27:17 +00:00
serge-sans-paille dffbe01369 Bug 1912959 - Use assertRaisesRegex instead of assertRaisesRegexp r=webdriver-reviewers,taskgraph-reviewers,jcristau,whimboo
The former is supported since python 3.2, the latter got removed in
python 3.12.

Differential Revision: https://phabricator.services.mozilla.com/D219102
2024-08-15 08:57:15 +00:00
serge-sans-paille 77ed9a6de6 Bug 1906824 - Move MOZ_OPTIMIZE_FLAGS from old-configure to moz.configure r=glandium
As js has different flags compared to the remaining parts of the
codebase, set a specific variable (namely MOZ_JS_OPTIMIZE_FLAGS) and use
it instead of MOZ_OPTIMIZE_FLAGS using a specific hook in
python/mozbuild/mozbuild/frontend/context.py

Also:

- harmonize moz_optimize_flags type to always return a list.
- moz_optimize now either returns "1" or None (no use case distinguishes
  between returning 1 or 2)

Differential Revision: https://phabricator.services.mozilla.com/D216098
2024-08-14 21:14:42 +00:00
Alexandre Lissy 13e7baef4d Bug 1912866 - Move fluent import to avoid doc generation warning r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D219082
2024-08-14 15:19:09 +00:00
Cosmin Sabou 67a95a9fb2 Backed out changeset d5d4782604fd (bug 1906824) for causing bustages on BigIntType. CLOSED TREE 2024-08-14 01:30:14 +03:00
serge-sans-paille aebbe0ea57 Bug 1906824 - Move MOZ_OPTIMIZE_FLAGS from old-configure to moz.configure r=glandium
As js has different flags compared to the remaining parts of the
codebase, set a specific variable (namely MOZ_JS_OPTIMIZE_FLAGS) and use
it instead of MOZ_OPTIMIZE_FLAGS using a specific hook in
python/mozbuild/mozbuild/frontend/context.py

Also:

- harmonize moz_optimize_flags type to always return a list.
- moz_optimize now either returns "1" or None (no use case distinguishes
  between returning 1 or 2)

Differential Revision: https://phabricator.services.mozilla.com/D216098
2024-08-13 22:04:33 +00:00
Dave Townsend 8814ffd2ef Bug 1906260: Remove the -no-remote command line argument. r=glandium,webdriver-reviewers,perftest-reviewers,application-update-reviewers,taskgraph-reviewers,nalexander,bhearsum,jdescottes,sparky
Differential Revision: https://phabricator.services.mozilla.com/D217569
2024-08-13 14:13:10 +00:00
Narcis Beleuzu bc91793ab3 Backed out changeset f0866652e65f (bug 1906260) for bc failure on /browser_startup_mainthreadio.js . CLOSED TREE 2024-08-09 12:33:45 +03:00
Dave Townsend 5d4ad37c57 Bug 1906260: Remove the -no-remote command line argument. r=glandium,webdriver-reviewers,perftest-reviewers,application-update-reviewers,taskgraph-reviewers,nalexander,bhearsum,jdescottes,sparky
Differential Revision: https://phabricator.services.mozilla.com/D217569
2024-08-08 19:35:41 +00:00
Sandor Molnar f5c1f4fe7c Backed out changeset 82cd657ce425 (bug 1906260) for causing mochitest failures @ test_interactive_widget.html & pup wd test failures CLOSED TREE 2024-08-06 18:06:20 +03:00
Dave Townsend b3f84cff12 Bug 1906260: Remove the -no-remote command line argument. r=glandium,webdriver-reviewers,perftest-reviewers,application-update-reviewers,taskgraph-reviewers,nalexander,bhearsum,jdescottes,sparky
Differential Revision: https://phabricator.services.mozilla.com/D217569
2024-08-06 11:46:07 +00:00
Alexandre Lissy 722f2c6a02 Bug 1901703 - Update 'repackage-snap' to generate desktop file r=sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D216373
2024-08-05 15:01:01 +00:00
Alexandre Lissy b99c0f9718 Bug 1901703 - Update 'repackage-deb' to changes for generated desktop file r=gabriel
Differential Revision: https://phabricator.services.mozilla.com/D216372
2024-08-05 15:01:01 +00:00
Alexandre Lissy 50f0a10387 Bug 1901703 - Introduce mach repackage desktop-file command r=jlorenzo
Differential Revision: https://phabricator.services.mozilla.com/D216386
2024-08-05 15:01:00 +00:00
Alexandre Lissy ba25f33c1d Bug 1901703 - Change desktop_file generator to allow more customization r=gabriel
Differential Revision: https://phabricator.services.mozilla.com/D215917
2024-08-05 15:01:00 +00:00
Alexandre Lissy 2bd5bbad46 Bug 1901703 - Extract desktop file generation from deb repackage r=gabriel
Differential Revision: https://phabricator.services.mozilla.com/D216051
2024-08-05 15:00:59 +00:00
Mike Hommey a3b653aa32 Bug 1910819 - Remove OS_INCLUDES from WASM compile flags. r=firefox-build-system-reviewers,sergesanspaille
When targetting WASM, includes for OS libraries make no sense.

Differential Revision: https://phabricator.services.mozilla.com/D218168
2024-07-31 09:10:33 +00:00
Gabriel Bustamante 08f2f9f860 Bug 1876701 - Add man pages for Firefox .deb packages r=jcristau
Differential Revision: https://phabricator.services.mozilla.com/D215678
2024-07-30 20:17:28 +00:00
Cristina Horotan 492390b6f0 Backed out 3 changesets (bug 1905073, bug 1876701, bug 1863757) for causing mbu failures at test_deb.py CLOSED TREE
Backed out changeset 989113ca866f (bug 1863757)
Backed out changeset 6d2df6fd6f11 (bug 1876701)
Backed out changeset 576f4de811d7 (bug 1905073)
2024-07-30 22:29:59 +03:00
Gabriel Bustamante b60eaf45d8 Bug 1876701 - Add man pages for Firefox .deb packages r=jcristau
Differential Revision: https://phabricator.services.mozilla.com/D215678
2024-07-30 16:59:15 +00:00
Daniel Darnell c56643d50b Bug 1893603 - Modify .deb repackaging to accomodate Thunderbird. r=releng-reviewers,taskgraph-reviewers,jcristau
One notable change in this patch: a code path that checks for pre-existing distribution.ini and .desktop files.
If you place a distribution.ini or .desktop file in the root of any of the Linux .deb templates directories (paths specified in deb-templates and deb-l10n-templates), the supplied file will be used instead of generating or downloading a default file.

Differential Revision: https://phabricator.services.mozilla.com/D211141
2024-07-29 17:53:51 +00:00
Mike Hommey ce446da747 Bug 1908637 - Allow configure options with at most 1 argument to contain commas. r=firefox-build-system-reviewers,ahochheiden
Comma is the separator for values in options. Like in --with-foo=bar,baz.
This is meant to be useful for options with nargs="*", "+", or a fixed
value greater than 1.

Currently, when an option with another nargs is passed a comma, we
reject the value as being multiple values, while one or less is
expected. This causes problems with options with nargs=1 that actually
CAN have legitimate values containing commas. Examples include:
  CFLAGS="-Wp,--preprocessor-flag -Wa,--assembler-flag"
  LDFLAGS=-Wl,--linker-flag"

Since options with multiple arguments are the exception, not the norm,
let's allow commas in cases where at most a single argument is expected.

An alternative would be to explicitly disable comma-splitting on the set
of options that can take values containing commas, but that's error-prone.

Differential Revision: https://phabricator.services.mozilla.com/D217021
2024-07-22 20:15:36 +00:00
Ryan VanderMeulen a2fb932423 Bug 1908818 - Update JDK 17 to version 17.0.12+7. r=geckoview-reviewers,calu
Differential Revision: https://phabricator.services.mozilla.com/D217051
2024-07-19 16:10:46 +00:00
serge-sans-paille a20d5495e4 Bug 1904589 - Remove MOZ_PGO_OPTIMIZE_FLAGS. r=glandium
Instead, position MOZ_OPTIMIZE_FLAGS to -O3 under PGO on Linux.

This creates a dependency on PGO from toolchain.configure, break it by
splitting moz_optimize in two functions, one for the optimization status
and one for the optimization flags.

Differential Revision: https://phabricator.services.mozilla.com/D214843
2024-07-19 01:22:00 +00:00
Mike Hommey 8a27038ff3 Bug 1906736 - Make IMPORT_LIBRARY a full path. r=firefox-build-system-reviewers,sergesanspaille
This makes IMPORT_LIBRARY a full path, to match the change to
SHARED_LIBRARY so that the IMPORT_LIBRARY target can be found in
js/src/build/Makefile.in. Fixes regression in js standalone build 'make
install'.

Initial patch by Philip Chimento.

Differential Revision: https://phabricator.services.mozilla.com/D215992
2024-07-11 06:07:01 +00:00
Mike Hommey ce8ae0095a Bug 1906736 - Use RecursiveMakeBackend._pretty_path to output import_paths. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D216143
2024-07-11 06:07:01 +00:00
Mike Hommey ccd5f9fbb9 Bug 1906736 - Make Linkables' import_path an ObjDirPath. r=firefox-build-system-reviewers,sergesanspaille
This will allow to use better backend primitives to use it in a
subsequent change.

Differential Revision: https://phabricator.services.mozilla.com/D216142
2024-07-11 06:07:00 +00:00
Mike Hommey f1e4bacbec Bug 1906736 - Make BaseRustLibrary.import_name a name, not a path. r=firefox-build-system-reviewers,sergesanspaille
For consistency with other Library classes, import_name should be the
"import" library name, while import_path is the full path.

Differential Revision: https://phabricator.services.mozilla.com/D216141
2024-07-11 06:07:00 +00:00
Mike Hommey 7e467abcdd Bug 1906736 - Remove BaseRustLibrary.deps_path. r=firefox-build-system-reviewers,sergesanspaille
Its only use was removed in bug 1304815.

Differential Revision: https://phabricator.services.mozilla.com/D216140
2024-07-11 06:06:59 +00:00
Norisz Fay 02513c8820 Backed out 6 changesets (bug 1906736) for causing python failure on test_recursivemake.py::TestRecursiveMakeBackend CLOSED TREE
Backed out changeset 26b5993b476e (bug 1906736)
Backed out changeset 1b7f3d4ab195 (bug 1906736)
Backed out changeset 534d97cbb905 (bug 1906736)
Backed out changeset cfcd1e782c34 (bug 1906736)
Backed out changeset 0ee858291b82 (bug 1906736)
Backed out changeset 334aed124a54 (bug 1906736)
2024-07-11 07:59:15 +03:00
Mike Hommey 3cc83e493b Bug 1906736 - Make IMPORT_LIBRARY a full path. r=firefox-build-system-reviewers,sergesanspaille
This makes IMPORT_LIBRARY a full path, to match the change to
SHARED_LIBRARY so that the IMPORT_LIBRARY target can be found in
js/src/build/Makefile.in. Fixes regression in js standalone build 'make
install'.

Initial patch by Philip Chimento.

Differential Revision: https://phabricator.services.mozilla.com/D215992
2024-07-11 03:21:30 +00:00
Mike Hommey c71eacff9a Bug 1906736 - Use RecursiveMakeBackend._pretty_path to output import_paths. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D216143
2024-07-11 03:21:29 +00:00
Mike Hommey fb55a2c5cb Bug 1906736 - Make Linkables' import_path an ObjDirPath. r=firefox-build-system-reviewers,sergesanspaille
This will allow to use better backend primitives to use it in a
subsequent change.

Differential Revision: https://phabricator.services.mozilla.com/D216142
2024-07-11 03:21:29 +00:00
Mike Hommey ed6fd91f21 Bug 1906736 - Make BaseRustLibrary.import_name a name, not a path. r=firefox-build-system-reviewers,sergesanspaille
For consistency with other Library classes, import_name should be the
"import" library name, while import_path is the full path.

Differential Revision: https://phabricator.services.mozilla.com/D216141
2024-07-11 03:21:29 +00:00
Mike Hommey 940a636fa8 Bug 1906736 - Remove BaseRustLibrary.deps_path. r=firefox-build-system-reviewers,sergesanspaille
Its only use was removed in bug 1304815.

Differential Revision: https://phabricator.services.mozilla.com/D216140
2024-07-11 03:21:28 +00:00
ahochheiden 3ca4c07b58 Bug 1887885 - Collect the target architecture of a build r=firefox-build-system-reviewers,glandium
Added one field:
 - The `--target` of a build.

Re-added `python/mach/metrics.yaml` to `./mach doc mach-telemetry` generation (Not sure why it was missing).

Re-generated the associated docs. (It looks like this was not done for previously when other fields were added.

Differential Revision: https://phabricator.services.mozilla.com/D208811
2024-07-09 19:57:45 +00:00
ahochheiden c3c547130c Bug 1894153 - Collect build tier durations r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D209079
2024-07-09 19:57:45 +00:00
serge-sans-paille d92a167915 Bug 1904776 - Allow dangling symlinks when unpacking upstream tarball with mach vendor r=glandium
As a side effect, also propagate dangling symlink option when called
recursively.

Differential Revision: https://phabricator.services.mozilla.com/D214924
2024-07-03 07:22:27 +00:00
Alexandre Lissy dea067ecad Bug 1904824 - Allow different upstream repo/branch for Snap flows r=releng-reviewers,jcristau
Differential Revision: https://phabricator.services.mozilla.com/D214961
2024-06-27 11:49:53 +00:00
Jesse Schwartzentruber 2452dd969a Bug 1904755 - Avoid using mozbuild in mozpack.macpkg r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D214971
2024-06-26 18:08:07 +00:00
Jesse Schwartzentruber 301ec15a92 Bug 1903620 - Calculate jobs using CPU affinity in mach. r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D214289
2024-06-25 13:53:13 +00:00
Gabriel Bustamante 644166118a Bug 1882556 - Use official branding on ESR .deb packages r=releng-reviewers,gbrown
Differential Revision: https://phabricator.services.mozilla.com/D214466
2024-06-21 17:03:47 +00:00
Mike Hommey 71696adbcc Bug 1903661 - Automatically stage a package when running mach run --packaged. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D214327
2024-06-20 20:16:31 +00:00
André Bargull e042ed2cf4 Bug 1899177 - Part 1: Enable "icu_calendar" feature from ICU4X. r=spidermonkey-reviewers,supply-chain-reviewers,glandium,sylvestre,mgaudet
Enable the "icu_calendar" feature from ICU4X for use in Temporal.

Differential Revision: https://phabricator.services.mozilla.com/D211762
2024-06-20 17:42:11 +00:00
serge-sans-paille b1bf45b852 Bug 1903061 - Move objective-C flags settings from old-configure to moz.configure r=glandium
Also get rid of host_* version which got dismissed in bug 1069556.

Differential Revision: https://phabricator.services.mozilla.com/D213978
2024-06-20 14:12:26 +00:00
Stanca Serban cac4fbb1ff Backed out changeset d61e206198fe (bug 1903061) for causing python failures. CLOSED TREE 2024-06-20 09:57:23 +03:00
serge-sans-paille 8fd7dcaa02 Bug 1903061 - Move objective-C flags settings from old-configure to moz.configure r=glandium
Also get rid of host_* version which got dismissed in bug 1069556.

Differential Revision: https://phabricator.services.mozilla.com/D213978
2024-06-20 06:31:44 +00:00