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

737 Коммитов

Автор SHA1 Сообщение Дата
Noemi Erli fdd5552b6b Backed out changeset eaddabaa522f (bug 1915571) for causing toolchains bustage CLOSED TREE 2024-09-04 10:19:27 +03:00
Mike Hommey b63013a227 Bug 1915571 - Move mac and windows clang stage 2 build to cross-compiles. r=firefox-build-system-reviewers,sergesanspaille
By doing so, we don't really need a stage 1 clang for mac and windows
(with the downside that the final PGOed clang becomes the
clang-toolchain artifact on those platforms), and cross-compiling stage
2 is much faster as a cross-compile, leaving only stage 3 to be native.

While here, for the one build type that still does stage 2 and 3 in one
task, we actually prefer taking the llvm-profdata from stage 1, as it
doesn't contain profile instrumentation (it should actually have been
this way since the beginning).

Differential Revision: https://phabricator.services.mozilla.com/D220654
2024-09-04 05:43:03 +00:00
Mike Hommey 62718af062 Bug 1915778 - Clean up the clang toolchain json configs. r=firefox-build-system-reviewers,sergesanspaille
By separating the "use this compiler" configuration from other items,
we avoid redundancies, and at the same time simplify how the aarch64
variants are configured by having the $os_variant.json files only
contain the `target`.

Overall, each build now only uses at most 4 configs:
- one for the compiler it uses
- one for the target (optional when the host is the same as the target)
- one for the patches applied to the clang/llvm source
- one for the build type (stage-1, profile or stage-4-pgo)

And a similar pattern for clang-tidy.

Also remove the setting for ld, which hasn't been used since bug
1799423, and ranlib and ar for builds using clang-cl, as it's not used
either.

Differential Revision: https://phabricator.services.mozilla.com/D220652
2024-09-04 05:43:03 +00:00
Mike Hommey c20bfbc4a6 Bug 1915778 - Allow paths without .exe on Windows. r=firefox-build-system-reviewers,sergesanspaille
This will be more convenient for the cleanup to come.

Differential Revision: https://phabricator.services.mozilla.com/D220651
2024-09-04 05:43:02 +00:00
Mike Hommey 2ba34672d5 Bug 1914947 - Build Intel mac clang on arm64 workers. r=firefox-build-system-reviewers,sergesanspaille
That's actually much faster.

Differential Revision: https://phabricator.services.mozilla.com/D220531
2024-09-04 05:29:59 +00:00
Mike Hommey 31d5d844eb Bug 1914947 - Add stage1 and profile tasks for macosx64 and macosx64-aarch64. r=firefox-build-system-reviewers,sergesanspaille
This splits the clang build in the necessary steps to get native
profiles for Intel and Arm64 mac, similarly to Linux.

Stage 1s are cross-compiled, and the profile step runs natively.

Differential Revision: https://phabricator.services.mozilla.com/D220530
2024-09-04 05:29:59 +00:00
Kagami Sascha Rosylight 6bc82eb120 Bug 1913646 - Add win64-aarch64-clang-18 task r=firefox-build-system-reviewers,sergesanspaille
For now this uses Linux x64 profile for PGO as the macosx64-aarch64 task does, because we don't have aarch64 Windows worker now.

Differential Revision: https://phabricator.services.mozilla.com/D219012
2024-08-26 09:56:11 +00:00
Mike Hommey e8cbeccebe Bug 1901592 - Revert a LLVM change that affects how llvm-config outputs paths. r=firefox-build-system-reviewers,sergesanspaille
Before trying to address the issue in depth (possibly backporting an
upcoming llvm-config change), let's just revert to something that is
known to work for the moment.

Differential Revision: https://phabricator.services.mozilla.com/D213529
2024-06-13 20:22:24 +00:00
Mike Hommey 2ea485c39c Bug 1898413 - Revert clang 18 change that causes regressions in some speedometer tests. r=firefox-build-system-reviewers,sergesanspaille
This has the potential to regress other things, and if that happens,
we'll balance the pros and cons. But first, let's attempt this.

Differential Revision: https://phabricator.services.mozilla.com/D212516
2024-06-04 06:49:43 +00:00
Cristian Tuns 23efe2c8c5 Backed out changeset 449dd1f336ba (bug 1899227) as requeste by glandium on element, causing conflicts. a=backout 2024-05-29 20:30:09 -04:00
Mike Hommey ac71287d49 Bug 1899227 - Work around clang trunk no linking the i686-linux target with our i686 sysroot. r=firefox-build-system-reviewers,ahochheiden
Unblock the clang trunk builds until we find the right fix on our end.

Differential Revision: https://phabricator.services.mozilla.com/D211814
2024-05-28 21:07:29 +00:00
Mike Hommey df19d34ab3 Bug 1899232 - Remove revert-llvmorg-18*.patch. r=firefox-build-system-reviewers,ahochheiden
They existed to revert things that conflicted with other things being
reverted, but those things are not reverted anymore as of bug 1892128.

Differential Revision: https://phabricator.services.mozilla.com/D211807
2024-05-28 21:06:44 +00:00
Mike Hommey dedccf51e4 Bug 1898655 - Remove partial-revert-llvmorg-16-init-17151-gaa0883b59ae1_clang_17.patch. r=firefox-build-system-reviewers,ahochheiden
The bug this was working around was actually fixed in clang 17.

Differential Revision: https://phabricator.services.mozilla.com/D211805
2024-05-28 21:06:44 +00:00
Mike Hommey 42354bc6ca Bug 1849075 - Update builders to clang 18. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D208955
2024-05-23 04:28:37 +00:00
Cristina Horotan 22fa3c4f67 Backed out 2 changesets (bug 1849075, bug 1878764) for causing remote failures at remote/shared/messagehandler/test/browser/*
Backed out changeset 0dbba1a7b5ab (bug 1878764)
Backed out changeset 86555ffb064f (bug 1849075)
2024-05-22 03:34:48 +03:00
Mike Hommey d5182ee779 Bug 1849075 - Update builders to clang 18. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D208955
2024-05-21 07:24:02 +00:00
Ryan VanderMeulen c84d3db8d7 Backed out 3 changesets (bug 1849075, bug 1897015, bug 1878764) for causing Android arm32 startup crashes (bug 1897635).
Backed out changeset 916680b7cdce (bug 1897015)
Backed out changeset c6dd0210975b (bug 1878764)
Backed out changeset c9e28db916e5 (bug 1849075)
2024-05-20 12:54:45 -04:00
Mike Hommey eaa48cfb89 Bug 1849075 - Update builders to clang 18. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D208955
2024-05-15 19:38:32 +00:00
acseh e9228802fc Backed out 2 changesets (bug 1878764, bug 1849075) for causing build bustages and xpcshell failures on /test_content_annotation.js
Backed out changeset 8dc928e0dd33 (bug 1878764)
Backed out changeset 605e19d02f88 (bug 1849075)
2024-05-14 12:48:46 +03:00
Mike Hommey e75b7d2a26 Bug 1849075 - Update builders to clang 18. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D208955
2024-05-14 07:10:43 +00:00
Cristian Tuns c4685ab34e Backed out 4 changesets (bug 1878764, bug 1894860, bug 1849075) for causing multiple Gtest failures. CLOSED TREE
Backed out changeset 1b6f68a55002 (bug 1878764)
Backed out changeset dbcef036309d (bug 1894860)
Backed out changeset 440056d02985 (bug 1878764)
Backed out changeset df59a0aca986 (bug 1849075)
2024-05-04 18:03:30 -04:00
Cristian Tuns db6d6f8879 Bug 1878764 - Fix clang-format linting failures r=fix CLOSED TREE 2024-05-04 16:50:24 -04:00
Mike Hommey bdef86af1e Bug 1874251 - Apply clang trunk patch fixing -fsanitize=function on macOS. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D208591
2024-04-25 20:01:20 +00:00
Mike Hommey c00945c898 Bug 1892812 - Adjust revert-llvmorg-16-init-11301-g163bb6d64e5f_clang_19.patch to upstream changes. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D208246
2024-04-25 01:19:49 +00:00
Andrew Halberstadt d68e3340c5 Bug 1868440 - [ci] Upgrade taskcluster-taskgraph to v7.4.0, r=perftest-reviewers,geckoview-reviewers,ci-and-tooling,devtools-reviewers,taskgraph-reviewers,releng-reviewers,mach-reviewers,omc-reviewers,jmaher,hneiva,aminomancer,jari,dom-storage-reviewers,afinder,asuth,bhearsum,owlish
Differential Revision: https://phabricator.services.mozilla.com/D206260
2024-04-18 20:39:09 +00:00
Mike Hommey fb939bec25 Bug 1892128 - Simplify the llvm-symbolizer patch for bug 1798613. r=firefox-build-system-reviewers,sergesanspaille
Reverting the entire commit that is causing problems has caused a number
of conflicts with further changes in LLVM in the past year and a half,
making us have to revert a bunch of other patches.

Instead of doing that, we just revert the small part of the original
change that is causing the problem, avoiding conflicts with newer
changes. This also gives us a better hint at what's really going on.

Differential Revision: https://phabricator.services.mozilla.com/D207829
2024-04-18 19:48:58 +00:00
Stanca Serban f9c5779927 Backed out 2 changesets (bug 1868440) for gecko decision task broken. CLOSED TREE
Backed out changeset 4b22948d849a (bug 1868440)
Backed out changeset 837bdcb3694a (bug 1868440)
2024-04-18 21:25:43 +03:00
Andrew Halberstadt f33979228a Bug 1868440 - [ci] Upgrade taskcluster-taskgraph to v7.4.0, r=perftest-reviewers,geckoview-reviewers,ci-and-tooling,devtools-reviewers,taskgraph-reviewers,releng-reviewers,mach-reviewers,omc-reviewers,jmaher,hneiva,aminomancer,jari,dom-storage-reviewers,afinder,asuth,bhearsum,owlish
Differential Revision: https://phabricator.services.mozilla.com/D206260
2024-04-18 17:50:50 +00:00
Mike Hommey f9c7fc80a0 Bug 1890887 - Revert more patches that conflict with previous reverts. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D207220
2024-04-15 20:50:05 +00:00
Mike Hommey 69a278aed5 Bug 1889822 - Add hackish support for arm64e to LLD. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D206725
2024-04-09 21:51:57 +00:00
Mike Hommey d9955d97cc Bug 1888738 - Stop reverting patches working around llvm-symbolizer problems on clang. r=firefox-build-system-reviewers,sergesanspaille
We're currently applying patches to clang to work around some yet
unidentified problem with some change that, when applied to
llvm-symbolizer, makes tsan tests timeout for some reason.

Those patches regularly conflict with newer changes to LLVM, blocking
the clang build. We however actually don't need to apply these reverts
to clang itself, only to llvm-symbolizer, which we build separately. So
we do that, and fix the llvm-symbolizer-trunk task to revert the new
conflicting upstream patches.

Differential Revision: https://phabricator.services.mozilla.com/D206727
2024-04-09 21:27:51 +00:00
Norisz Fay c3037f06ac Backed out changeset d667b589d8cd (bug 1888738) per request by glandium for causing toolchain python related failures CLOSED TREE 2024-04-06 23:05:06 +03:00
Mike Hommey 1c1ded579f Bug 1888738 - Stop reverting patches working around llvm-symbolizer problems on clang. r=firefox-build-system-reviewers,sergesanspaille
We're currently applying patches to clang to work around some yet
unidentified problem with some change that, when applied to
llvm-symbolizer, makes tsan tests timeout for some reason.

Those patches regularly conflict with newer changes to LLVM, blocking
the clang build. We however actually don't need to apply these reverts
to clang itself, only to llvm-symbolizer, which we build separately. So
we do that, and fix the llvm-symbolizer-trunk task to revert the new
conflicting upstream patches.

Differential Revision: https://phabricator.services.mozilla.com/D206727
2024-04-06 19:40:17 +00:00
Iulian Moraru 7a5c2499ac Backed out changeset fdbb6cbe2018 (bug 1888738) for making bug 1889833 block plenty of tasks. CLOSED TREE 2024-04-05 13:18:08 +03:00
Mike Hommey cfa813d4c6 Bug 1888738 - Stop reverting patches working around llvm-symbolizer problems on clang. r=firefox-build-system-reviewers,sergesanspaille
We're currently applying patches to clang to work around some yet
unidentified problem with some change that, when applied to
llvm-symbolizer, makes tsan tests timeout for some reason.

Those patches regularly conflict with newer changes to LLVM, blocking
the clang build. We however actually don't need to apply these reverts
to clang itself, only to llvm-symbolizer, which we build separately. So
we do that, and fix the llvm-symbolizer-trunk task to revert the new
conflicting upstream patches.

Differential Revision: https://phabricator.services.mozilla.com/D206727
2024-04-05 06:54:49 +00:00
Mike Hommey 89d3716254 Bug 1889823 - Adjust clang patches to recent upstream changes. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D206726
2024-04-05 06:54:48 +00:00
Iulian Moraru 4263e22a5e Backed out changeset d90b4451e543 (bug 1885319) for causing multiple xpcshell failures. 2024-03-21 17:53:03 +02:00
Nazım Can Altınova d80e4360d5 Bug 1885319 - Make SIGPROF a sync signal on TSan of our clang and rust builds r=sergesanspaille,glandium
Due to SIGPROF being async, it was hanging on some cases because some functions
were incorrectly marked non-blocking. This patch is merge to LLVM in:
https://github.com/llvm/llvm-project/pull/85188 But we want to patch our clang
here to start benefiting from that quickly.

We are also patching our rustc here. Even though they are not used by default
during our normal builds, this custom rustc is needed for building and
running TSan already:
https://firefox-source-docs.mozilla.org/tools/sanitizer/tsan.html#llvm-clang-rust

Differential Revision: https://phabricator.services.mozilla.com/D204631
2024-03-21 12:43:24 +00:00
Mike Hommey 7d030bf3a3 Bug 1883080 - Backport ASAN interceptor patch to support unhandled instruction in new MSVCRT. r=firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D203807
2024-03-07 20:30:09 +00:00
Mike Hommey 917cd1f7f1 Bug 1882441 - Enable libxml2 support in windows clang. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D202902
2024-02-29 22:53:01 +00:00
Mike Hommey ff15cc904a Bug 1880175 - Add toolchains for clang 18.1.0-rc2. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D201778
2024-02-14 06:57:07 +00:00
Mike Hommey 4d71f98fb6 Bug 1874524 - Adjust clang patches to recent upstream changes. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D198638
2024-01-16 04:39:22 +00:00
Mike Hommey 2f5afc2211 Bug 1870206 - Remove ReleaseNotes part of the clang patches. r=firefox-build-system-reviewers,ahochheiden
It's not like we publish the ReleaseNotes from the clang toolchain
artifact, and it's only going to be a recurrent source of patch conflict
when the upstream release notes change.

Differential Revision: https://phabricator.services.mozilla.com/D196529
2023-12-18 20:14:31 +00:00
Mike Hommey 0ff3c2f865 Bug 1868924 - Adjust revert-llvmorg-15-init-11205-gcead4eceb01b_clang_18.patch to upstream changes. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D195844
2023-12-11 20:11:37 +00:00
serge-sans-paille 882e879a4e Bug 1867867 - Restore temporal instrumentation support in clang r=glandium
Should be ok since rustc understands the new format now.

Differential Revision: https://phabricator.services.mozilla.com/D195316
2023-12-05 13:01:31 +00:00
Mike Hommey eba47166c7 Bug 1867202 - Fix missing include in clang 8. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D194952
2023-11-30 08:48:34 +00:00
Mike Hommey e32e90ef8a Bug 1862547 - Adjust revert-llvmorg-18-init-6188-gc649f29c24c9.patch to upstream changes. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D192906
2023-11-08 23:52:30 +00:00
Mike Hommey 5ad226c737 Bug 1858042 - Adjust revert-llvmorg-15-init-11205-gcead4eceb01b_clang_18.patch to recent upstream changes. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D190530
2023-10-10 06:32:56 +00:00
Mike Hommey b2212b3106 Bug 1857400 - Use CMAKE_MSVC_RUNTIME_LIBRARY instead of LLVM_USE_CRT_RELEASE. r=firefox-build-system-reviewers,sergesanspaille
The latter was deprecated in
c6bd873403
and removed more recently in
618e5d2c2d

Fortunately, the former works with LLVM 17, so we don't need to
special case, we can use the same as for trunk.

Differential Revision: https://phabricator.services.mozilla.com/D190248
2023-10-07 07:15:29 +00:00
Mike Hommey 2b7860571a Bug 1856501 - Remove revert-llvmorg-14-init-14141-gd6d3000a2f6d.patch. r=firefox-build-system-reviewers,sergesanspaille
Some more recent fixes upstream unbroke cross-compiling the windows
compiler-rt, so we don't need the reversal patch anymore. We also don't
need it on clang 14 either because we don't build the windows
compiler-rt there.

Differential Revision: https://phabricator.services.mozilla.com/D189881
2023-10-05 08:45:31 +00:00