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

10327 Коммитов

Автор SHA1 Сообщение Дата
Mike Hommey 7ad2484904 Bug 1753859 - Adjust clang patches to newest trunk. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D138115
2022-02-08 08:20:00 +00:00
Mike Hommey 8d35881c8d Bug 1753859 - Remove changes to clang/test/CodeGen/alloc-fns-alignment.c from patches. r=firefox-build-system-reviewers,andi
We don't run tests, and this will help reduce the amount of changes
needed to adjust the patches to newer clang trunk.

Differential Revision: https://phabricator.services.mozilla.com/D138114
2022-02-08 08:20:00 +00:00
Benjamin Beurdouche bf3cd48302 Bug 1753980 - land NSS ac0c37493099 UPGRADE_NSS_RELEASE, r=nkulatova
Differential Revision: https://phabricator.services.mozilla.com/D138023
2022-02-07 16:31:57 +00:00
Butkovits Atila 96d2a50568 Backed out changeset 14ef7c10fef4 (bug 1617283) for causing bustages complaining about Unified_cpp_widget_windows0.obj. CLOSED TREE 2022-02-07 00:24:45 +02:00
Shazib Summar a913da4c47 Bug 1617283 - Removed COM violations and shifted AudioSession to MTA r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D136377
2022-02-06 22:01:29 +00:00
Sylvestre Ledru caaedeee98 Bug 1753413 - fx doc: Remove whitespaces, trailing lines & windows CR r=andi,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D137741
2022-02-03 18:34:58 +00:00
Andi-Bogdan Postelnicu 40ca2d63f3 Bug 1744446 - Upgrade llvm toolchain to 13.0.1 r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D132870
2022-02-03 15:18:33 +00:00
Mike Hommey 8a445063c5 Bug 1752490 - Build the Windows clang toolchain as a repack or clang + compiler-rt. r=firefox-build-system-reviewers,andi
This means we can now skip building a 32-bit compiler-rt when building
clang itself, as well as the asan pdb files, which will be taken from
the compiler-rt artifact.

Differential Revision: https://phabricator.services.mozilla.com/D137259
2022-02-03 07:51:38 +00:00
Mike Hommey 083c25c7bf Bug 1752490 - Remove leftovers from bug 1751812. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D137258
2022-02-03 07:51:37 +00:00
Mike Hommey 40a80b3c3e Bug 1752486 - Replace the win64 clang 2 stages toolchain with a 1 stage one. r=firefox-build-system-reviewers,andi
As of bug 1751824, the only remaining use of the 2-stages Windows clang
toolchain is for llvm-profdata in the generate-profile runs.

We don't need that to be built by clang itself (whereas it was desirable
to get compiler-rt from stage 2 before bug 1751824), so we can drop that
build to one stage only.

And because as of bug 1751839 we can start building stage 2 from a
separate stage 1 task, we do that for the Windows clang toolchain, like
we do for the Linux one.

Also, make the win64-clang-toolchain alias point to that stage 1 build,
like for Linux.

Differential Revision: https://phabricator.services.mozilla.com/D137257
2022-02-03 07:51:37 +00:00
Mike Hommey 41bf6ee9ab Bug 1752072 - Remove check for RANLIB. r=firefox-build-system-reviewers,mhentges
It hasn't been used in the build system since bug 569597.

Differential Revision: https://phabricator.services.mozilla.com/D136987
2022-02-03 00:06:30 +00:00
Mike Hommey 1ea827dc69 Bug 1752064 - Move the remainder of AS to python configure. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D136981
2022-02-03 00:06:29 +00:00
Alex Lopez 2da2365f75 Bug 1388894 - Replace list of mach modules to load with a dict of mach commands r=mhentges
This starts a centralized place to keep track of mach commands with some essential
metadata.

Differential Revision: https://phabricator.services.mozilla.com/D136790
2022-02-02 20:25:21 +00:00
Alex Lopez e39b3c93d9 Bug 1388894 - Add function in Mach to load commands from files in bulk. r=mhentges
This reduces some code duplication and paves the way for modifying how
Mach loads modules.

The plan is to follow this up by making this function take a more fleshed out 'spec'
that maps command names to the files they're defined at and possibly more metadata.
Since this may affect how Mach works internally (e.g. with lazy loading in the roadmap),
it makes sense to move this logic inside the Mach class.

Differential Revision: https://phabricator.services.mozilla.com/D136789
2022-02-02 20:25:20 +00:00
Markus Stange 648b57016d Bug 1753107 - Enable framepointers on all channels for macOS arm64 builds. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D137574
2022-02-02 15:52:31 +00:00
Masayuki Nakano 8d88df10f6 Bug 1718825 - Treat strong pointers which are members of class/struct and marked as `MOZ_KNOWN_LIVE` as safe r=andi
`MOZ_KNOWN_LIVE RefPtr<Foo> mFoo` is not treated as safe because its raw pointer
is referred with operators but they are not checked at handling `MOZ_KNOWN_LIVE`
annotation.

Additionally, when members marked as `MOZ_KNOWN_LIVE` are in the stack, they
are also not treated as safe, but they should be safe in most cases.

With these changes, `HTMLTableEditor.cpp` can get rid of a lot of
`MOZ_KnownLive` method calls.

Differential Revision: https://phabricator.services.mozilla.com/D136122
2022-02-02 00:48:19 +00:00
Jan-Ivar Bruaroey f144f24866 Bug 1225722 - Less restrictive non-memmovable static analysis of std::tuple. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D137573
2022-02-01 23:12:30 +00:00
Mike Hommey c0ade9e73b Bug 1748056 - Build libc++ in Windows clang for real. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D137256
2022-02-01 00:51:57 +00:00
Mike Hommey f214b100b4 Bug 1748056 - Stop forcing c++14 mode when building clang on Windows. r=firefox-build-system-reviewers,andi
Back when this was added, clang's default mode might have been c++11,
but it's not c++17, and we're effectively downgrading it (which
incidentally causes problems to build libc++).

Differential Revision: https://phabricator.services.mozilla.com/D137255
2022-02-01 00:51:57 +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
Nick Alexander ea098cb33e Bug 1751658 - Move `ANDROID_CPU_ARCH` to `moz.configure`. r=firefox-build-system-reviewers,glandium
Why not somewhere Android-specific?  Eventually, I'd like to expose
this to something very early in configure.

Differential Revision: https://phabricator.services.mozilla.com/D136702
2022-01-27 16:11:09 +00:00
Cristian Tuns 5eb2cfda19 Backed out 2 changesets (bug 1752064, bug 1752072) for causing build bustages on Windows 2012 CLOSED TREE
Backed out changeset 0cbd0cf9563e (bug 1752072)
Backed out changeset b6e0d43b43ab (bug 1752064)
2022-01-27 02:27:45 -05:00
Mike Hommey 53aae3cded Bug 1752072 - Remove check for RANLIB. r=firefox-build-system-reviewers,mhentges
It hasn't been used in the build system since bug 569597.

Differential Revision: https://phabricator.services.mozilla.com/D136987
2022-01-27 00:33:46 +00:00
Mike Hommey 7d09c915d1 Bug 1752068 - Stop using system_lib_option in old_configure_options. r=firefox-build-system-reviewers,mhentges
The last old-configure system option was removed in bug 1308558.

Differential Revision: https://phabricator.services.mozilla.com/D136982
2022-01-27 00:24:15 +00:00
Mike Hommey 4cd9b523ae Bug 1752064 - Move the remainder of AS to python configure. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D136981
2022-01-27 00:18:27 +00: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
Mitchell Hentges 758aca98bc Bug 1751663: Bump maximum zstandard version to `0.17.0` r=firefox-build-system-reviewers,glandium
It doesn't appear like the breaking changes will affect us.

Note that the taskcluster packages config wasn't updated because
`0.17.0` hasn't yet been deployed to the GitHub releases page.

Differential Revision: https://phabricator.services.mozilla.com/D136947
2022-01-26 16:11:59 +00:00
Andreas Pehrson f52bbb09fc Bug 1412333 - Remove traces of MULTI_MONITOR_SCREENSHARE. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D136942
2022-01-26 08:52:17 +00:00
Mike Hommey e83738f7d8 Bug 1629184 - Preprocess MIDL inputs manually. r=firefox-build-system-reviewers,nalexander
This avoids needing clang-cl.exe on cross compilations. We could keep
Windows builds on having MIDL do the preprocessing, but that would be
a difference between native and cross builds, and it's better to avoid
that.

Differential Revision: https://phabricator.services.mozilla.com/D136831
2022-01-25 22:43:56 +00:00
Mike Hommey b51dd0d34d Bug 1751839 - Build clang stage 1 as a separate task. r=firefox-build-system-reviewers,andi
This allows to start building other toolchains, compiler runtimes, much
earlier, since we don't have to wait for a complete 4-stage-optimized
compiler to start these, while the output produced by clang is
presumably the same whether it's a stage 1 or a stage 4 clang.

Differential Revision: https://phabricator.services.mozilla.com/D136844
2022-01-25 21:51:17 +00:00
Mike Hommey 49dc85a2b5 Bug 1751839 - Add options to skip clang build stages. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D136843
2022-01-25 21:51:16 +00:00
Mike Hommey a92ea8069d Bug 1751839 - Don't build the gold linker plugin when not using a sysroot. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D136842
2022-01-25 21:51:16 +00:00
Mike Hommey 53e4530689 Bug 1751837 - Explicitly enable libxml2 support in macos clang. r=firefox-build-system-reviewers,andi
It is currently enabled automatically because libxml2 is detected, but
we want to be sure it's not accidentally disabled.

Differential Revision: https://phabricator.services.mozilla.com/D136840
2022-01-25 21:51:15 +00:00
Mike Hommey d099cbd384 Bug 1751812 - Remove options to build compiler runtimes at the same time as clang. r=firefox-build-system-reviewers,andi
`extra_targets` was used for the aarch64-linux compiler runtime, which
moved to a separate task in bug 1690757, and `android_targets` was used
for android compiler runtimes, which moved to separate tasks in
bug 1690973.

Using separate tasks is now the prefered way to build compiler runtimes,
os we won't need these options.

Differential Revision: https://phabricator.services.mozilla.com/D136822
2022-01-25 21:51:15 +00:00
Mike Hommey 77ef469247 Bug 1752004 - Remove usage of six in python configure. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D136946
2022-01-25 21:38:47 +00:00
Mike Hommey e013590cd1 Bug 1751331 - Add a mozbuild crate that exposes some build configuration items. r=firefox-build-system-reviewers,andi
This will be used as a central point of authority rather than individual
crates figuring things out on their own.

Differential Revision: https://phabricator.services.mozilla.com/D136558
2022-01-25 21:29:50 +00:00
Mike Hommey 677b775c8f Bug 1751811 - Stop installing msdia140.dll. r=firefox-build-system-reviewers,andi
It was added for llvm-symbolizer, and at the time, it was required.
However, since [1] (shipped in llvm 12), llvm-symbolizer, msdia140.dll
is not used by default, only when passing the -dia command line option,
which we don't use.

1. c74b427cb2

Differential Revision: https://phabricator.services.mozilla.com/D136821
2022-01-25 20:01:37 +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 ba9b891611 Bug 1751810 - Stop checking for DIA SDK headers and libraries. r=firefox-build-system-reviewers,andi
After bug 1588538, the only use of the DIA SDK is to copy msdia140.dll
for llvm-symbolizer.exe.

Differential Revision: https://phabricator.services.mozilla.com/D136820
2022-01-25 09:23:03 +00:00
Mike Hommey 773fa3be25 Bug 1751817 - Pass --rtlib=libgcc to clang when building for Android. r=firefox-build-system-reviewers,andi
Instead of forcing it via a patch to clang itself (which now conflicts
with other changes on clang trunk, although the conflict is benign).

Because of https://github.com/llvm/llvm-project/issues/53397 we need to
narrow down the warnings that trigger errors in the check for
`pthread_cond_timedwait_monotonic_np`.

Differential Revision: https://phabricator.services.mozilla.com/D136850
2022-01-25 09:17:39 +00:00
Mike Hommey 68e6c861f5 Bug 1751331 - Add a mozbuild crate that exposes some build configuration items. r=firefox-build-system-reviewers,andi
This will be used as a central point of authority rather than individual
crates figuring things out on their own.

Differential Revision: https://phabricator.services.mozilla.com/D136558
2022-01-25 09:03:02 +00:00
Mike Hommey 8e8d1e77e5 Bug 1751415 - Fixup after bug 1750671. r=firefox-build-system-reviewers,mhentges
`extra_flags` is not necessarily a list, originally.

Differential Revision: https://phabricator.services.mozilla.com/D136660
2022-01-22 00:59:03 +00:00
Mitchell Hentges a37e7812d4 Bug 1748737: Bump attrs to be compatible with mochitest r=ahal
A bunch of modern packages (`pytest`, `twisted`, `automat`) all need
`attrs==19.2.0` (or newer).
We _could_ bump `attrs` all the way to the modern `21.4.0` version, but
I'd like to defer that upgrade risk, since there's a
lot of backwards-incompatible changes and deprecations. So, lightly bump
it to `19.2.0`.

As part of bumping it, `pytest` is no longer compatible.
The earliest candidate that seems to be compatible is `pytest` 4.6.6,
which boasts in its release notes that it's resolved some deprecation
warnings against `attrs>=19.2.0`.

Once `pytest` was bumped, it needed a newer version of `pluggy`, which
itself has dependencies.
Since we're using hashes in `tox_requirements.txt`, all dependencies
needed to be hashed as well.

Differential Revision: https://phabricator.services.mozilla.com/D135178
2022-01-21 18:21:56 +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
Mike Hommey a3c1255269 Bug 1750599 - Keep track of the time spent running valgrind on perfherder. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D136308
2022-01-19 22:27:48 +00:00
Mike Hommey 77e267d014 Bug 1750599 - Apply valgrind upstream patch that increases performance with --track-origins=yes. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D136307
2022-01-19 22:27:47 +00:00
Mike Hommey cce437063b Bug 1749386 - Fall back to `mach artifact toolchain --from-build` if we cannot resolve to a task in configure. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D136300
2022-01-19 22:17:44 +00:00