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

318 Коммитов

Автор SHA1 Сообщение Дата
Logan Rosen f024d94b2b Bug 1786490 - reformat the tree using black 23.3.0 r=sylvestre,webdriver-reviewers,taskgraph-reviewers,whimboo,jmaher,ahal,perftest-reviewers,geckoview-reviewers,afinder,m_kato
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D186092
2023-09-06 16:14:30 +00:00
Makoto Kato 7969feb1b9 Bug 1719535 - Part 7. Build ICU4X as default. r=firefox-build-system-reviewers,platform-i18n-reviewers,glandium,dminor
Depends on D167674

Differential Revision: https://phabricator.services.mozilla.com/D167676
2023-08-07 06:23:58 +00:00
Sandor Molnar 13c7e4a350 Backed out 14 changesets (bug 1719535) for causing mochitest failures in accessible/tests/browser/mac/browser_text_basics.js CLOSED TREE
Backed out changeset 338c2c8d91af (bug 1719535)
Backed out changeset 3fdb2e999aba (bug 1719535)
Backed out changeset 63b9d2064827 (bug 1719535)
Backed out changeset 09c216cdbbc8 (bug 1719535)
Backed out changeset 29977dc00fb3 (bug 1719535)
Backed out changeset d3f8850a343b (bug 1719535)
Backed out changeset 90f1f621031f (bug 1719535)
Backed out changeset 52ca9bdc5bd4 (bug 1719535)
Backed out changeset 94536f0d5a1f (bug 1719535)
Backed out changeset d615264f9f5f (bug 1719535)
Backed out changeset f16f9e583378 (bug 1719535)
Backed out changeset e1abdee07587 (bug 1719535)
Backed out changeset 45f9ad406428 (bug 1719535)
Backed out changeset caa2b8a731dc (bug 1719535)
2023-08-02 14:55:26 +03:00
Makoto Kato 39476d4afb Bug 1719535 - Part 7. Build ICU4X as default. r=firefox-build-system-reviewers,platform-i18n-reviewers,glandium,dminor
Depends on D167674

Differential Revision: https://phabricator.services.mozilla.com/D167676
2023-08-02 10:32:56 +00:00
Mike Hommey 0375de6fda Bug 1839743 - Move some things around for them to be available in toolkit/moz.configure. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D181686
2023-06-27 08:56:17 +00:00
Mike Hommey 783d448fa2 Bug 1837122 - Fix typo introduced in bug 1834446. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D180174
2023-06-07 22:09:25 +00:00
Mike Hommey 023322c911 Bug 1834964 - Use the same logic for {llvm-,$toolchain-prefix-,}strip as for many other tools. r=firefox-build-system-reviewers,sergesanspaille
Whatever was making things fail with llvm-strip back when using
llvm-strip was made a possibility, doesn't seem to happen anymore, even
with the clang version we were using back then (clang 13).

Differential Revision: https://phabricator.services.mozilla.com/D179040
2023-05-29 20:30:40 +00:00
Mike Hommey 63148715c6 Bug 1834446 - Move otool detection to python configure. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D178750
2023-05-24 21:27:03 +00:00
Mike Hommey 6bd39b79a5 Bug 1834446 - Move install-name-tool detection to python configure. r=firefox-build-system-reviewers,andi
At the same time, fix the sole use of the tool to actually use what's
found by configure, and only enable that configure check when building
Spidermonkey standalone.

And while we're here, add llvm-install-name-tool to the list.

Differential Revision: https://phabricator.services.mozilla.com/D178749
2023-05-24 21:27:03 +00:00
Mike Hommey f1618ae8eb Bug 1834446 - Find dsymutil in the clang directory automatically. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D178747
2023-05-24 21:27:03 +00:00
Mike Hommey 37aee400e8 Bug 1832209 - Remove a bunch of unused add_old_configure_assignment. r=firefox-build-system-reviewers,ahochheiden
- Last use of CROSS_COMPILE was removed in bug 1460620,
- Last use of EARLY_BETA_OR_EARLIER was removed in bug 1603834,
- Last use of RELEASE_OR_BETA was removed in bug 1670948,
- Last use of MOZILLA_VERSION was removed in bug 1745838,
- Last use of GNU_AS was removed in bug 1635764,
- Last use of AR was removed in bug 1638193,
- Last use of PKG_CONFIG was removed in bug 1747775,
- Last use of MOZ_DMD was removed in bug 1747970,
- Last use of NSPR_CFLAGS and NSS_CFLAGS were removed in bug 1722652,
- Last use of MOZ_PROFILING was removed in bug 1640578,
- Last use of USE_FC_FREETYPE was removed in bug 1747325,
- Last use of MOZ_FMP4 was removed in bug 1382930,
- Last use of MOZ_WEBSPEECH was removed in bug 1295480,
- MOZ_ASAN_REPORTER doesn't seem to have ever been used,
- Last use of MOZ_THUMB2 and ANDROID_CPU_ARCH were removed in bug 1814802,
- Last use of ARM_ARCH was removed in bug 1747753,

Differential Revision: https://phabricator.services.mozilla.com/D177581
2023-05-10 22:13:13 +00:00
Mike Hommey aafce08fe1 Bug 1832205 - Only check perl when we need it. r=firefox-build-system-reviewers,sergesanspaille
... which turns out to be limited to configurations that build libopus,
libtheora and libvpx for ARM with GNU as. Nothing else in the tree
remains that is actively using the PERL variable.

Those uses might actually not even need a full perl installation, but
for now, let's go with what's easy.

Differential Revision: https://phabricator.services.mozilla.com/D177579
2023-05-10 22:12:49 +00:00
Mike Hommey b96b543a5a Bug 1832182 - Stop passing PERL to old-configure. r=firefox-build-system-reviewers,sergesanspaille
The last PERL use was removed from old-configure in bug 1520340.

Differential Revision: https://phabricator.services.mozilla.com/D177565
2023-05-10 21:19:12 +00:00
serge-sans-paille 77973c6ab3 Bug 1830039 - Remove mach support for REQUIRES_UNIFIED_BUILD r=andi,glandium
As a consequence, rename hybrid builds into non-unified builds in tree
herder.

Differential Revision: https://phabricator.services.mozilla.com/D176545
2023-05-05 12:10:39 +00:00
Emilio Cobos Álvarez 3331eb242b Bug 1829512 - Remove check_objdir_backend_reuse. r=glandium,firefox-build-system-reviewers
Tup is no longer a thing, afaict.

Differential Revision: https://phabricator.services.mozilla.com/D176226
2023-04-25 09:38:54 +00:00
Emilio Cobos Álvarez f17e2f8dec Bug 1829512 - Generate compile db for non-VSCode editors too. r=andi
It's useful for virtually all editors.
Also it works with Android builds, so remove that condition.

Differential Revision: https://phabricator.services.mozilla.com/D176225
2023-04-23 06:31:02 +00:00
Ted Campbell 7400f52a60 Bug 1823989 - Fix android jsshell builds. r=jandem,firefox-build-system-reviewers,nalexander
Stop trying to use system zlib when building standalone SpiderMonkey for Android
targets and instead rely on the mozglue version. Additionally, use 'get_adb_path'
used by other geckoview tests to locate `adb` in a consistent way.

Also do some house-keeping in the documentation and log messages.

Differential Revision: https://phabricator.services.mozilla.com/D173466
2023-03-28 00:44:41 +00:00
Iulian Moraru f24e1d5ea9 Backed out changeset c1e85a761778 (bug 1823989) for causing android jittest failures. 2023-03-25 00:07:48 +02:00
Ted Campbell 10b0297371 Bug 1823989 - Fix android jsshell builds. r=jandem,firefox-build-system-reviewers,nalexander
Stop trying to use system zlib when building standalone SpiderMonkey for Android
targets and instead rely on the mozglue version. Additionally, use 'get_adb_path'
used by other geckoview tests to locate `adb` in a consistent way.

Also do some house-keeping in the documentation and log messages.

Differential Revision: https://phabricator.services.mozilla.com/D173466
2023-03-24 18:40:06 +00:00
ahochheiden 749b4c8995 Bug 1807907 - Cache the results of `try_invoke_compiler` on disk for re-use between different runs of configure r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D165671
2023-02-28 08:42:52 +00:00
Mike Hommey f9aec4b3cf Bug 1817372 - Allow -windows-msvc and -windows-gnu triplets as host and target. r=firefox-build-system-reviewers,andi
This is the first step before entirely deprecating the use of -mingw32
targets to mean msvc.

Differential Revision: https://phabricator.services.mozilla.com/D170169
2023-02-17 07:42:48 +00:00
Mike Hommey f608c3ae17 Bug 1817372 - Refactor checks for the MSVC abi that take the form of a compiler check. r=firefox-build-system-reviewers,andi
We're soon going to introduce a new way to distinguish between the two
windows ABIs, so we factor out compiler checks that will need to be
adjusted to limit the amount of changes down the line.

Differential Revision: https://phabricator.services.mozilla.com/D170167
2023-02-17 07:42:47 +00:00
Emilio Cobos Álvarez de7acc6e32 Bug 1802405 - Prepend mozillabuild msys2 to path only for the build. r=glandium
This reverts bug 1801826 and instead prepends the msys2 path only for
the build, which is a bit more sensible.

This allows us to remove the existing warning from old_configure, since
that can't happen now.

Differential Revision: https://phabricator.services.mozilla.com/D163073
2022-11-26 23:23:34 +00:00
Cristian Tuns 280201b26e Backed out changeset 028a7f4e4b32 (bug 1776255) for causing Linux artifact builds bustages on central CLOSED TREE 2022-11-26 17:13:36 -05:00
Marian-Vasile Laza 6b7ee54e9b Backed out changeset 738ee02dfc2a (bug 1802405) for causing build bustages. CLOSED TREE 2022-11-26 01:57:53 +02:00
Emilio Cobos Álvarez fe8160e90a Bug 1802405 - Prepend mozillabuild msys2 to path only for the build. r=glandium
This reverts bug 1801826 and instead prepends the msys2 path only for
the build, which is a bit more sensible.

This allows us to remove the existing warning from old_configure, since
that can't happen now.

Differential Revision: https://phabricator.services.mozilla.com/D163073
2022-11-25 23:08:46 +00:00
ahochheiden 3086d55972 Bug 1776255 - Add the appropriate 'when' to all 'option' that end up calling 'pkg_check_modules' later r=firefox-build-system-reviewers,glandium
We don't check for pkg-config on some platforms (Windows, OSX, Android).
On those platforms, calling 'pkg_check_modules' will not work. Adding
the same 'when' used for the 'pkg_config' check to all the options that
end up calling 'pkg_check_modules' effectively disables them, and prevents
'pkg_check_modules' from being called.

Differential Revision: https://phabricator.services.mozilla.com/D150649
2022-11-25 17:22:03 +00:00
Mike Hommey f47fc4dad4 Bug 1794517 - Make CI plain builds a little closer to local builds. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D159005
2022-10-11 06:54:45 +00:00
Mike Hommey 4045d857ee Bug 1787977 - Include configure in the tree. r=firefox-build-system-reviewers,nalexander
Historically, we had configure.in in the tree, and generated configure
with autoconf via client.mk at build time, and we'd run that configure.
As a side effect, configure would be shipped in source tarballs, as with
traditional autoconf-driven software.

Bug 1671424 changed that, and made `mach build`/`mach configure` invoke
configure.py directly, without needing configure. As a side effect,
configure stopped being generated in source directories. An unexpected
side effect was that configure stopped being shipped in source tarballs.

Anyways, it has been long enough now that adding a configure file in the
tree shouldn't cause too many problems with people updating their trees
where a configure file might exist from those older builds.

Differential Revision: https://phabricator.services.mozilla.com/D155923
2022-08-30 04:02:12 +00:00
Gijs Kruitbosch e00e722239 Bug 1773520 - add vscode build backend by default if vscode is installed, r=firefox-build-system-reviewers,nalexander,glandium
Differential Revision: https://phabricator.services.mozilla.com/D150147
2022-07-18 13:14:23 +00:00
Narcis Beleuzu ea20959e2d Backed out 1 changesets (bug 1773520) for breaking the ./mach ide vscode
Backed out changeset d9571dde686f (bug 1773520)
2022-07-01 09:32:36 +03:00
Gijs Kruitbosch e5852b6d8d Bug 1773520 - add vscode build backend by default if vscode is installed, r=firefox-build-system-reviewers,nalexander,glandium
Differential Revision: https://phabricator.services.mozilla.com/D150147
2022-06-30 08:38:02 +00:00
Tooru Fujisawa 29225468b3 Bug 1769405 - Part 1: Move artifact build option to build/moz.configure/init.configure. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D147011
2022-06-14 18:13:53 +00:00
Marian-Vasile Laza 8d68418a04 Backed out 4 changesets (bug 1769405) for causing regression in Bug 1774100. CLOSED TREE
Backed out changeset 813147df341c (bug 1769405)
Backed out changeset 6de9495c467d (bug 1769405)
Backed out changeset 9099ba749b1f (bug 1769405)
Backed out changeset 5f8e0141a0ed (bug 1769405)
2022-06-14 01:36:48 +03:00
Tooru Fujisawa c7aaaab3fe Bug 1769405 - Part 1: Move artifact build option to build/moz.configure/init.configure. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D147011
2022-06-10 19:16:58 +00:00
Mike Hommey 9dffed84fb Bug 1544779 - Prioritize mozmake over mingw32-make. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D142308
2022-03-29 08:26:06 +00:00
Mitchell Hentges 23cbe80fd0 Bug 1724274: Move virtualenv dependency manifests to python/virtualenvs r=ahal
This is needed for a few reasons:
* All mach commands can use virtualenvs, not just `build`-related
  commands, so the files don't make sense to be in `build/`.
* When locking is added, more files associated with virtualenvs will be
  added, and this will change will ease the related directory structure
  setup.
* This removes the need for a redundant "_virtualenv_packages" keyword
  as part of the manifest filenames.

Differential Revision: https://phabricator.services.mozilla.com/D140382
2022-03-24 14:04:34 +00:00
Mike Hommey 2705287f4b Bug 1596656 - Move STRIP to python configure. r=firefox-build-system-reviewers,andi
As a bonus, we also check and prefer llvm-strip when it's suitable.

Differential Revision: https://phabricator.services.mozilla.com/D136976
2022-01-28 03:00:13 +00:00
Mike Hommey 9a384df16e Bug 1596656 - Move OBJCOPY to python configure. r=firefox-build-system-reviewers,andi
As a bonus, we also check and prefer llvm-objcopy when it's suitable.

Differential Revision: https://phabricator.services.mozilla.com/D136975
2022-01-28 03:00:13 +00:00
Marian-Vasile Laza 6705627752 Backed out 2 changesets (bug 1596656) for causing jittest failures on 1659595.js. CLOSED TREE
Backed out changeset da8f11880896 (bug 1596656)
Backed out changeset 6c8f3c0aac51 (bug 1596656)
2022-01-27 18:20:30 +02:00
Mike Hommey c403bed2a2 Bug 1596656 - Move STRIP to python configure. r=firefox-build-system-reviewers,andi
As a bonus, we also check and prefer llvm-strip when it's suitable.

Differential Revision: https://phabricator.services.mozilla.com/D136976
2022-01-26 23:53:38 +00:00
Mike Hommey c45108f00b Bug 1596656 - Move OBJCOPY to python configure. r=firefox-build-system-reviewers,andi
As a bonus, we also check and prefer llvm-objcopy when it's suitable.

Differential Revision: https://phabricator.services.mozilla.com/D136975
2022-01-26 23:53:37 +00:00
Mike Hommey d4919a8c5f Bug 1747970 - Move AC_CHECK_FUNC{,S} to python configure. r=firefox-build-system-reviewers,andi
- AC_HAVE_FUNCS is an alias to AC_CHECK_FUNCS, so it is covered.
- Nothing uses HAVE___CXA_DEMANGLE, so we don't explictly set it,
  although we do need the result of whether __cxa_demangle is supported.
- No moz.build uses MOZ_DEMANGLE_SYMBOLS, so we only `set_define` it.
- We leave dladdr in old-configure because it needs to move along other
  dl* things.
- The hotfix for AC_CHECK_FUNC is however not needed for dladdr, so we
  remove it.
- We replace the forced HAVE_LOCALECONV on Windows with a check shared
  with all platforms.

Differential Revision: https://phabricator.services.mozilla.com/D134858
2022-01-20 21:01:20 +00:00
Iulian Moraru f2f55d39bc Backed out changeset ffdd096022f9 (bug 1747970) for causing android build bustages. CLOSED TREE 2022-01-19 02:20:04 +02:00
Mike Hommey 464471142b Bug 1747970 - Move AC_CHECK_FUNC{,S} to python configure. r=firefox-build-system-reviewers,andi
- AC_HAVE_FUNCS is an alias to AC_CHECK_FUNCS, so it is covered.
- Nothing uses HAVE___CXA_DEMANGLE, so we don't explictly set it,
  although we do need the result of whether __cxa_demangle is supported.
- No moz.build uses MOZ_DEMANGLE_SYMBOLS, so we only `set_define` it.
- We leave dladdr in old-configure because it needs to move along other
  dl* things.
- The hotfix for AC_CHECK_FUNC is however not needed for dladdr, so we
  remove it.
- We replace the forced HAVE_LOCALECONV on Windows with a check shared
  with all platforms.

Differential Revision: https://phabricator.services.mozilla.com/D134858
2022-01-18 23:53:38 +00:00
Mike Hommey cca868ba68 Bug 1730004 - Add a crate with diagnostic / nightly asserts. r=nika,emilio
Original patch by emilio.

Differential Revision: https://phabricator.services.mozilla.com/D125190
2022-01-07 21:24:45 +00:00
Mike Hommey b89cb6ae18 Bug 1748969 - Move definition of MOZ_DIAGNOSTIC_ASSERT_ENABLED to configure. r=emilio
Original patch by emilio.

Differential Revision: https://phabricator.services.mozilla.com/D135321
2022-01-07 21:24:44 +00:00
Mike Hommey c8dbb11daa Bug 1647542 - Handle host libraries properly when cross-compiling on Windows. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D135013
2022-01-05 00:47:55 +00:00
Mike Hommey 5f69025f05 Bug 1747863 - Use a more appropriate check to enable the VisualStudio backend. r=firefox-build-system-reviewers,mhentges
Bug 1322025 made it possible to depend on target/host in @depends
function that also depend on "--help".

Differential Revision: https://phabricator.services.mozilla.com/D134773
2021-12-30 01:38:27 +00:00
Mike Hommey f094186c6f Bug 1747501 - Move ZLIB_IN_MOZGLUE to python configure. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D134643
2021-12-29 22:12:45 +00:00