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

11079 Коммитов

Автор SHA1 Сообщение Дата
Mike Hommey d8456fd716 Bug 1836230 - Update bindgen to 0.66.1. r=emilio,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D179656
2023-06-21 08:52:22 +00:00
Mike Hommey 4a1b6bac9b Bug 1838354 - Refresh the rust workspace hack. r=firefox-build-system-reviewers,supply-chain-reviewers,ahochheiden
It had been neglected for a long time, and the enabled features were
outdated, and plenty of now common crates were missing.

This refresh required ad-hoc, flawed scripts to reach that updated
Cargo.toml. Eventually we'll want this refresh to be automated, but
the existing tools don't quite work for our use case just yet. Rather
than waiting that such a state is reached, go ahead with this manual
update which improves a lot compared to the status quo.

Differential Revision: https://phabricator.services.mozilla.com/D180911
2023-06-21 07:31:44 +00:00
Mike Hommey 39ed3add07 Bug 1838354 - Change how the rust workspace hack is added. r=firefox-build-system-reviewers,webdriver-reviewers,ahochheiden,whimboo
First, instead of using a path, use a version, which is more convenient
(via a patch in the top-level Cargo.toml).

Second, we make the build system itself enforce its presence for any
crate that is hooked to the build system as a program or library.

Finally, for each crate depending on the workspace hack, we add a
feature named after it, and make the build system enforce that the
feature is set. For now, this remains unused, but the end goal is to
have each of those features enable the dependencies each of these
crates need, so that if crate A and B need dependency D, but crate C
doesn't, building crate C doesn't build D.

Differential Revision: https://phabricator.services.mozilla.com/D180910
2023-06-21 07:31:44 +00:00
Cosmin Sabou 843d179cd9 Backed out 2 changesets (bug 1838952, bug 1838948) for causing bootstrap failures. CLOSED TREE
Backed out changeset 7bdf45ed2f6b (bug 1838952)
Backed out changeset 3690d22636d7 (bug 1838948)
2023-06-21 05:56:46 +03:00
ahochheiden 9ec475db86 Bug 1838948 - Update reference to `Python 3.6` as the minimum Python version that Mach supports `to Python 3.7` r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D181305
2023-06-21 02:01:58 +00:00
Mike Hommey e7d658bec2 Bug 1838566 - Update patch to fit clang upstream changes. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D181023
2023-06-15 20:44:04 +00:00
Kagami Sascha Rosylight e5819c8d13 Bug 1838481 - Add topobjdir to mozinfo.json r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D180972
2023-06-15 14:12:55 +00:00
Pier Angelo Vendrame 218d20a569 Bug 1832523 - Allow using NSS to sign and verify MAR signatures. r=application-update-reviewers,glandium,bytesized
Allow using NSS for checking MAR signatures also in platforms where
OS-native APIs are used by default, i.e., macOS and Windows.

Differential Revision: https://phabricator.services.mozilla.com/D177743
2023-06-14 16:36:04 +00:00
Mike Hommey d7e5217ede Bug 1838328 - Add a trampoline to call original_init when it's not possible directly, aarch64 edition. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D180901
2023-06-14 08:49:14 +00:00
Mike Hommey 6084037217 Bug 1838129 - Partially revert clang change that breaks our mac PGO/LTO builds with lld. r=firefox-build-system-reviewers,ahochheiden
See https://reviews.llvm.org/D138451#4416128

Differential Revision: https://phabricator.services.mozilla.com/D180765
2023-06-13 20:32:48 +00:00
Mike Hommey c1c8de2562 Bug 1838133 - Remove workaround for https://github.com/llvm/llvm-project/issues/57734. r=firefox-build-system-reviewers,ahochheiden
It was fixed in clang 16.

Differential Revision: https://phabricator.services.mozilla.com/D180766
2023-06-13 20:31:48 +00:00
Alex Franchuk dc45bb7642 Bug 1835274 - mach vendor rust seem to resolve dependencies of a new crate without importing them in third_party/rust r=firefox-build-system-reviewers,ahochheiden
This makes a few changes to clarify messaging:
* Documentation now mentions cargo vet and says that all vendored crates must be audited.
* A message is printed when vendoring fails, making it clear that no new crates were vendored.

Differential Revision: https://phabricator.services.mozilla.com/D180712
2023-06-13 17:35:32 +00:00
Mike Hommey ca2f2016f6 Bug 1837086 - Properly pass -pie when linking. r=firefox-build-system-reviewers,sergesanspaille
There was a syntax error introduced in bug 1796380 that removed the flag
entirely. In practice, it didn't make a difference for us because clang
now defaults to PIE, but it can make a difference in environments where
the compiler is not using such a default.

However, on both Darwin and WASI, clang complains the flag is unused, so
we have to do something about it.

Differential Revision: https://phabricator.services.mozilla.com/D180279
2023-06-08 05:59:21 +00:00
Natalia Csoregi 90fea68f79 Backed out changeset a78960b45007 (bug 1837086) for causing wasi bustage. CLOSED TREE 2023-06-08 02:15:10 +03:00
Mike Hommey 8b5d753504 Bug 1836415 - Upgrade clap to 4.1.14. r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D179750
2023-06-07 22:44:13 +00:00
Mike Hommey b0a2388b98 Bug 1837086 - Fix shell syntax error from bug 1796380. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D180171
2023-06-07 22:08:56 +00:00
Iulian Moraru 9ed9b5d1c8 Backed out 3 changesets (bug 1836415) for causing wd failures on allow_hosts.py.
Backed out changeset dbbb407831c0 (bug 1836415)
Backed out changeset a1fbb5a4179b (bug 1836415)
Backed out changeset e2d49a57b1c9 (bug 1836415)
2023-06-08 01:27:49 +03:00
Natalia Csoregi 7f2379dfc6 Bug 1836869 - Fix WebRender bustage. r=fix CLOSED TREE 2023-06-08 00:13:06 +03:00
Mike Hommey cc43d82f90 Bug 1836415 - Upgrade clap to 4.1.14. r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D179750
2023-06-07 20:23:22 +00:00
Mike Hommey 465c8eccac Bug 1836413 - Replace terminal_size with a dummy crate that returns a fixed 80x25 terminal size. r=supply-chain-reviewers,webdriver-reviewers,whimboo,jgraham
In practice, the result looks better than with clap's wrap_help
disabled, and, as a matter of personal preference, looks better to
me than when using the actual terminal size.

This will allow to upgrade clap to a more recent version without
pulling in windows-sys.

Differential Revision: https://phabricator.services.mozilla.com/D179748
2023-06-07 20:11:12 +00:00
Gabriele Svelto 4b039f20f2 Bug 1776197 - Remove the old IPC channel used for retrieving annotations and all related machinery r=geckoview-reviewers,afranchuk,owlish
Depends on D173699

Differential Revision: https://phabricator.services.mozilla.com/D173700
2023-06-07 12:34:31 +00:00
Mike Hommey 285d1dfbd8 Bug 1835185 - Stop setting OS_* macros from the build system. r=ipc-reviewers,mccr8
Now that the ipc code doesn't use the OS_* macros, we don't need to set
them for most everything.

Differential Revision: https://phabricator.services.mozilla.com/D180056
2023-06-06 21:05:36 +00:00
Andi-Bogdan Postelnicu 6e0ce380ca Bug 1836676 - Backport misc-include-cleaner from clang-trunk to clang-16. r=sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D179889
2023-06-06 09:46:48 +00:00
Mike Hommey 443ad5c4b8 Bug 1836586 - Adjust local clang patches after D151864 landed upstream. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D180003
2023-06-06 00:09:22 +00:00
ahochheiden 8920993bf3 Bug 1834543 - Remove `-lssp` flag for `_FORTIFY_SOURCE` in `mingw-clang` r=firefox-build-system-reviewers,glandium
See: https://www.msys2.org/news/#2022-10-10-libssp-is-no-longer-required

Differential Revision: https://phabricator.services.mozilla.com/D179985
2023-06-05 23:30:00 +00:00
Mike Hommey d0b7892964 Bug 1836229 - Update serde_with to 3.0.0. r=emilio,supply-chain-reviewers
We upgrade enumset alongside so that we keep only one copy of darling.

Differential Revision: https://phabricator.services.mozilla.com/D179651
2023-06-05 20:28:30 +00:00
Mike Hommey 5fc3f9a336 Bug 1836020 - Patch llvm-strip to strip as much as cctools's strip. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D179636
2023-06-02 23:47:53 +00:00
Mike Hommey 7f9189e866 Bug 1836412 - Replace oslog with a dummy crate. r=janerik,supply-chain-reviewers
It's only used by glean in code that is not actually used. It allows to
remove the only use of dashmap, which is a rather complex crate.

Differential Revision: https://phabricator.services.mozilla.com/D179747
2023-06-02 21:42:02 +00:00
Mike Hommey 25a2da729c Bug 1836402 - Disable clap default features in uniffi-bindgen-gecko-js. r=bdk,supply-chain-reviewers
The tool is not directly user visible, and it's not super useful for
features like color to be enabled.

Differential Revision: https://phabricator.services.mozilla.com/D179742
2023-06-02 21:40:30 +00:00
Butkovits Atila 0a47281515 Backed out changeset fb52e6ee18c6 (bug 1714690) for causing bustages at complaining about charmap. CLOSED TREE 2023-06-02 02:23:24 +03:00
vax-r 67513fa535 Bug 1714690 - Remove usages of "six" in build/RunCbindgen.py. r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D178515
2023-06-01 20:13:27 +00:00
Mike Hommey e97e5246fd Bug 1834436 - Upgrade minimum supported GCC version to 8. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D178736
2023-06-01 20:09:19 +00:00
Mike Hommey c6281d6814 Bug 1835431 - Handle hardlinks when unpacking a SDK. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D179281
2023-05-31 22:24:34 +00:00
Mike Hommey 53bcd833e1 Bug 1835708 - Upgrade mercurial to 6.4.3 in docker images. r=sheehan
Differential Revision: https://phabricator.services.mozilla.com/D179392
2023-05-30 20:51:50 +00:00
Mike Hommey 4ae64cc3df Bug 1835717 - Disable _FORTIFY_SOURCE by setting it to 0 rather than undefining it. r=tjr
Clang 17 made a change that made it an error to undefine _FORTIFY_SOURCE
on mac, because it's defined as a builtin when ASAN is enabled.
Defining it as 0 has the same effect of disabling it, but avoids the
error.

Differential Revision: https://phabricator.services.mozilla.com/D179398
2023-05-30 19:59:29 +00:00
Botond Ballo 6c66902ec0 Bug 1835696 - Handle DependentNameTypeLoc in MozsearchIndexer. r=asuth DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D179402
2023-05-29 23:48:49 +00:00
Botond Ballo 9af5a6e19a Bug 1835694 - Factor out a helper function for handling heuristic results in MozsearchIndexer. r=asuth DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D179401
2023-05-29 23:43:42 +00:00
Mike Hommey 62f7b36735 Bug 1834707 - Update builders to clang 16.0.4. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D178907
2023-05-29 22:31:34 +00:00
Ryan VanderMeulen bd25a9e6ea Bug 1835676 - Update gcc11 to version 11.4. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D179374
2023-05-29 21:07:56 +00:00
Mike Hommey fd126d15a5 Bug 1834955 - Upgrade minimum supported Clang-cl version to 9. r=firefox-build-system-reviewers,sergesanspaille
We have less constraints on the minimum supported clang-cl version, and
it would unlock C++17 inline variables (which had a bug on Windows
targets in clang up-to 8.x).

Differential Revision: https://phabricator.services.mozilla.com/D179037
2023-05-29 20:31:08 +00:00
Mike Hommey cf6909d677 Bug 1835428 - Do config.sub munging in a more generic way. r=firefox-build-system-reviewers,nalexander
This will allow to add other munging more easily in the future.

Differential Revision: https://phabricator.services.mozilla.com/D179280
2023-05-29 20:29:25 +00:00
Botond Ballo 11e68ffe93 Bug 1621789 - Handle DependentScopeDeclRefExpr in MozsearchIndexer. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D179326
2023-05-29 16:16:47 +00:00
Sylvestre Ledru e11a9df047 no bug - doc/rust: fix some 404 DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D179205
2023-05-28 16:39:41 +00:00
Mike Hommey 543f3e05c0 Bug 1835189 - Make TARGET_OS in the build system mean the same as target.os in configure. r=firefox-build-system-reviewers,nalexander
The situation is confusing enough.

Eventually, we'll want to have TARGET_FOO mean the same as target.foo,
but let's start with the easy one.

Differential Revision: https://phabricator.services.mozilla.com/D179178
2023-05-26 22:55:28 +00:00
Mike Hommey 99720f5500 Bug 1835239 - Make the new -Wbuiltin-macro-redefined warning a non-error. r=firefox-build-system-reviewers,sergesanspaille
... until we fix the underlying issues.

Differential Revision: https://phabricator.services.mozilla.com/D179197
2023-05-26 19:36:15 +00:00
Mike Hommey 463113cd50 Bug 1796380 - Remove -Qunused-arguments flag. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D178734
2023-05-26 08:53:41 +00:00
Mike Hommey 1ccf25b93b Bug 1796380 - Don't add -pie to LDFLAGS on mac. r=firefox-build-system-reviewers,sergesanspaille
It's the default and clang complains the argument is unused.

Differential Revision: https://phabricator.services.mozilla.com/D178733
2023-05-26 08:53:41 +00:00
Chris Peterson ed58e665fe Bug 1791961 - Re-enable C++20 -Wambiguous-reversed-operator warnings. r=firefox-build-system-reviewers,glandium
clang only reports these warnings when compiling with -std=c++20.

Depends on D179025

Differential Revision: https://phabricator.services.mozilla.com/D179026
2023-05-26 04:51:45 +00:00
Botond Ballo 2d6051aa5b Bug 1834859 - Handle fields in VisitCXXDependentScopeMemberExpr. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D179182
2023-05-26 03:37:25 +00:00
Mike Hommey ba66f762bd Bug 1834937 - Remove test that relies on void* deref in TestCanRunScript.cpp. r=andi
clang 17 is making void* deref a non-disablable error, and this tests
relies on the deref "error" being disablable. Arranging things to make
it not deref makes not different from test_ref_9, so remove it.

Differential Revision: https://phabricator.services.mozilla.com/D179031
2023-05-25 19:19:22 +00:00