Commit Graph

10338 Commits

Author SHA1 Message Date
smolnar
832f677438 Backed out 3 changesets (bug 1726782) for causing clang-format failures. CLOSED TREE
Backed out changeset 17bfaad3db80 (bug 1726782)
Backed out changeset f58fe19ec977 (bug 1726782)
Backed out changeset 2fc65de433eb (bug 1726782)
2022-02-13 11:27:16 +02:00
Mike Hommey
3789acd7bb Bug 1726782 - Create a new task generating a clang profile for PGO. r=firefox-build-system-reviewers,mhentges
The new task builds a stage 2 compiler and uses it to generate the
profile as stage 3, and the profile is used to feed the now separate
stage 4 clang build. This will allow us to use this same profile to
build mac clangs with PGO.

Differential Revision: https://phabricator.services.mozilla.com/D138511
2022-02-12 21:07:59 +00:00
Mike Hommey
f0a2c36a16 Bug 1726782 - Separate stage from platform config for clang build. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D138510
2022-02-12 21:07:59 +00:00
Mike Hommey
52b59db295 Bug 1755076 - Remove loosen-msvc-detection.patch. r=firefox-build-system-reviewers,nalexander
The patch conflicts with latest clang trunk changes.

It was necessary back when we started using clang-cl instead of MSVC,
and we needed to fallback to MSVC for sources that clang-cl couldn't
build. Nowadays, with cross-compiles, that fallback can't happen
anyways, and even on native Windows builds we never use cl.exe.

Differential Revision: https://phabricator.services.mozilla.com/D138615
2022-02-12 05:52:14 +00:00
Mike Hommey
00c007643b Bug 1755076 - Adjust find_symbolizer_linux_clang patch to latest trunk. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D138592
2022-02-12 05:52:14 +00:00
Butkovits Atila
298b987a56 Backed out 3 changesets (bug 1715900) for causing Python failures. CLOSED TREE
Backed out changeset c1bad2dbd960 (bug 1715900)
Backed out changeset 2355ea418b97 (bug 1715900)
Backed out changeset 11c95163a2f6 (bug 1715900)
2022-02-11 20:41:49 +02:00
Thomas Wisniewski
10326d782c Bug 1715900 - Add a mach test-interventions command for testing webcompat interventions; r=jgraham,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D138384
2022-02-11 17:27:44 +00:00
Marian-Vasile Laza
013d79e7e6 Backed out 4 changesets (bug 1754474) for causing bc test failures. CLOSED TREE
Backed out changeset c6dd8b681aca (bug 1754474)
Backed out changeset 596955256cc6 (bug 1754474)
Backed out changeset fc692b3c27a2 (bug 1754474)
Backed out changeset 59eb7951a5eb (bug 1754474)
2022-02-11 17:30:03 +02:00
Jan-Erik Rediger
76df6d315f Bug 1754474 - Update to Glean 44.0.0 and glean_parser 5.0.1. r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D138446
2022-02-11 14:27:38 +00:00
Mike Hommey
dbc7289949 Bug 1754668 - Adjust clang trunk patches. r=firefox-build-system-reviewers,andi
llvmorg-13-init-8182-gc2297544c047 was finally backed out upstream which
means we don't need to revert it or its followups
(llvmorg-14-init-3651-g85ba583eba19 and llvmorg-14-init-3652-gf3c2094d8c11)

Differential Revision: https://phabricator.services.mozilla.com/D138399
2022-02-11 03:54:04 +00:00
Markus Stange
99a2412c5e Bug 1451902 - Enable framepointers for all macOS builds on all channels. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D138051
2022-02-11 00:38:45 +00:00
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