Commit Graph

11012 Commits

Author SHA1 Message Date
Mike Hommey
fab8f1730b Bug 1827533 - Partially revert recent clang trunk profdata changes. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D175197
2023-04-14 08:25:53 +00:00
Mike Hommey
e0f91b4b0f Bug 1827587 - Adjust clang-tidy build script to handle new lib/clang/ versioning. r=firefox-build-system-reviewers,andi
Before clang 16, the version in lib/clang/ looked like x.y.z, but now
it's only x.

Differential Revision: https://phabricator.services.mozilla.com/D175441
2023-04-14 07:53:21 +00:00
Mike Hommey
af652ca0e9 Bug 1827095 - Put the clang runtime directory first in LIB. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D175450
2023-04-14 07:51:25 +00:00
John Schanck
20bcb2f55f Bug 1827748 - vendor authenticator-rs v0.4.0-alpha.12. r=keeler,glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D175294
2023-04-13 18:59:35 +00:00
Dana Keeler
74407531f5 Bug 1289186 - wait for the server certificate to verify successfully before asking for a client auth certificate r=jschanck
If a TLS server asks for a client authentication certificate, no dialog asking
the user to select one should be shown until the server's certificate verifies
successfully.

Differential Revision: https://phabricator.services.mozilla.com/D175170
2023-04-13 18:52:18 +00:00
Valentin Gosu
401d933a4f Bug 1827504 - Remove last files of netwerk/cache/ r=sunil,geckoview-reviewers,zeid,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D175177
2023-04-13 09:04:24 +00:00
Narcis Beleuzu
4d86ceed60 Backed out changeset a5064c22d601 (bug 1289186) for Bp-hybrid bustages on NSSSocketControl.h . CLOSED TREE 2023-04-12 22:03:22 +03:00
Botond Ballo
e5c7fd1a64 Bug 1799579 - Handle OverloadExpr in MozSearchIndexer. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D175207
2023-04-12 16:34:23 +00:00
Dana Keeler
bfba45ee49 Bug 1289186 - wait for the server certificate to verify successfully before asking for a client auth certificate r=jschanck
If a TLS server asks for a client authentication certificate, no dialog asking
the user to select one should be shown until the server's certificate verifies
successfully.

Differential Revision: https://phabricator.services.mozilla.com/D175170
2023-04-12 16:21:38 +00:00
Mike Hommey
ba27a18628 Bug 1823591 - Update builders to clang 16. r=firefox-build-system-reviewers,andi,ahochheiden
This requires a couple backports from clang trunk:
- one for https://github.com/llvm/llvm-project/issues/60109
- one to replace revert-llvmorg-15-init-17171-g8bb4451a651a.patch, which
  addresses the regression rather than reverting it.

clang_include_cleaner.patch is also disabled in clang-tidy, as the patch
doesn't apply anymore, and the check it adds is not enabled by default.

Differential Revision: https://phabricator.services.mozilla.com/D173106
2023-04-11 07:17:09 +00:00
Mike Hommey
cbd1639bd9 Bug 1826891 - Adjust clang patches to upstream changes on trunk. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D174933
2023-04-10 22:42:27 +00:00
Mike Hommey
907ae956e3 Bug 1826669 - Upgrade rust-cascade to 1.5.0. r=keeler,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D174821
2023-04-06 21:18:44 +00:00
Alex Franchuk
22d0f39eef Bug 1823692 - Storing the memory around the instruction IP is broken in 32-bit Linux builds r=gsvelto,glandium,supply-chain-reviewers
Using the newer version of the crash-context crate corrects the 32-bit Linux context structure,
which was the cause of the IP memory not being stored (among possibly other 32-bit Linux issues).

Differential Revision: https://phabricator.services.mozilla.com/D174314
2023-04-06 13:38:54 +00:00
Mike Hommey
1dbceadc1c Bug 1826485 - Force update ntapi to 0.4. r=emilio,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D174729
2023-04-05 22:00:51 +00:00
Mike Hommey
3976af8e92 Bug 1718171 - Add the clang runtime directory to LIB during configure. r=firefox-build-system-reviewers,andi
We currently do so from mozconfigs, but that means this doesn't happen
for local builds.

Differential Revision: https://phabricator.services.mozilla.com/D174064
2023-04-05 00:16:52 +00:00
Mike Hommey
3c43de2d49 Bug 1824166 - Avoid passing thumb-interwork flags to clang for bindgen. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D174554
2023-04-05 00:12:42 +00:00
Mark Banner
5552888a2f Bug 1825793 - Re-layout and improve the Editor integration documentation, and link to it from the quick start guide. r=sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D174320
2023-04-04 16:00:06 +00:00
Masayuki Nakano
28ae9ee2e1 Bug 1826036 - Make CanRunScriptChecker treat references as safe if initialized with safe things r=andi
For preparation of bug 1620312, CanRunScriptChecker needs to allow references
which are initialized with safe instance(s) to run script.  Unfortunately,
this does not allow references which are initialized with safe references
recursively because it requires more complicated checks but it must be not
used in many places.

Differential Revision: https://phabricator.services.mozilla.com/D174436
2023-04-04 05:07:33 +00:00
serge-sans-paille
acc75d964c Bug 1826049 - Make toolkit/components/url-classifier/tests/gtest buildable outside of a unified build environment r=andi
Depends on D174432

Differential Revision: https://phabricator.services.mozilla.com/D174433
2023-04-03 20:39:58 +00:00
Mike Hommey
1de53ad3c6 Bug 1825480 - Update crossbeam-epoch to 0.9.14 and minidump-writer to current master. r=gsvelto,supply-chain-reviewers
This updates memoffset to 0.8 and nix to 0.26.

Differential Revision: https://phabricator.services.mozilla.com/D174055
2023-03-30 21:08:39 +00:00
Mike Hommey
93784bacca Bug 1825478 - Update bindgen to 0.64. r=emilio,necko-reviewers,supply-chain-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D174054
2023-03-30 21:05:14 +00:00
Mike Hommey
deb12f66cd Bug 1825478 - Update coreaudio-sys to 0.2.12. r=emilio,supply-chain-reviewers
The only change is a dependency on bindgen 0.64, which we
force-downgrade to 0.63 for now.

Differential Revision: https://phabricator.services.mozilla.com/D174053
2023-03-30 21:05:13 +00:00
Matthew Gregan
07b0619d68 Bug 1697845 - Remove AudioIPC v1. r=glandium,supply-chain-reviewers,cubeb-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D134931
2023-03-29 10:25:33 +00:00
serge-sans-paille
1b97818ea7 Bug 1815790 - Replace intgemm by gemmology r=yury
gemmology is a rewrite of intgemm based on xsimd (that we already
vendor), with a focus on the API we actually use.

It also supports sse2 and has a decent implementation for arm32 and
aarch64.

This patch integrates sse2, ssse3 and avx2 support.

Differential Revision: https://phabricator.services.mozilla.com/D171265
2023-03-28 17:12:20 +00:00
Narcis Beleuzu
4e6a52a24a Backed out changeset a8fd4d476a47 (bug 1815790) for Linting opt failure on gemmology . CLOSED TREE 2023-03-28 17:16:42 +03:00
serge-sans-paille
194cb113aa Bug 1815790 - Replace intgemm by gemmology r=yury
gemmology is a rewrite of intgemm based on xsimd (that we already
vendor), with a focus on the API we actually use.

It also supports sse2 and has a decent implementation for arm32 and
aarch64.

Differential Revision: https://phabricator.services.mozilla.com/D171265
2023-03-28 13:22:27 +00:00
Mike Hommey
5e255416a7 Bug 1824873 - Revert upstream change that causes reftest regressions. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D173786
2023-03-28 07:29:30 +00:00
Arthur Carcano
5fe3e81c1d Bug 1823599 - Add a mechanism to force running (pre-)export. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D173279
2023-03-28 00:50:29 +00:00
Cosmin Sabou
1f6c18d1a4 Backed out changeset 19ca420febe8 (bug 1815790) for causing SM bustages on GemmologyEngineAVX2.cpp. CLOSED TREE 2023-03-28 00:01:16 +03:00
serge-sans-paille
69bf76a412 Bug 1815790 - Replace intgemm by gemmology r=yury
gemmology is a rewrite of intgemm based on xsimd (that we already
vendor), with a focus on the API we actually use.

It also supports sse2 and has a decent implementation for arm32 and
aarch64.

Differential Revision: https://phabricator.services.mozilla.com/D171265
2023-03-27 20:40:04 +00:00
Andi-Bogdan Postelnicu
38a4785b34 Bug 1798305 - for clang-tidy do not cache attributes using a matcher since incomplete definitions may occur. r=sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D169821
2023-03-27 16:04:39 +00:00
Mike Hommey
b6972306c0 Bug 1824255 - Update glsl to 6.0.2. r=emilio,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D173488
2023-03-24 00:13:38 +00:00
Mike Hommey
76df0cfce2 Bug 1820876 - Update NDK to r23c. r=firefox-build-system-reviewers,nalexander
Wrench android builds had been kept on rustc 1.67 waiting for this
upgrade.

Differential Revision: https://phabricator.services.mozilla.com/D172089
2023-03-23 22:18:09 +00:00
Stanca Serban
7c5ebbcf74 Backed out changeset df6f338d6a26 (bug 1820876) for causing build bustages on Android Shippable. CLOSED TREE 2023-03-23 14:13:08 +02:00
Julien Cristau
c6a93ac62f Bug 1821513 - patch mercurial debian package to make http.timeout option work r=releng-reviewers,bhearsum
Cherry-pick from https://www.mercurial-scm.org/repo/hg/rev/3bb7c56e8fe6

Differential Revision: https://phabricator.services.mozilla.com/D173274
2023-03-23 07:07:57 +00:00
Mike Hommey
1f158eae92 Bug 1820876 - Update NDK to r23c. r=firefox-build-system-reviewers,nalexander
Wrench android builds had been kept on rustc 1.67 waiting for this
upgrade.

Differential Revision: https://phabricator.services.mozilla.com/D172089
2023-03-23 01:27:51 +00:00
Mike Hommey
a6287b9ca6 Bug 1823837 - Move the location of libunwind in the clang toolchain. r=firefox-build-system-reviewers,ahochheiden
Before clang 16, the libunwind install only contained the libunwind.a
library. Since clang 16, however, it also contains header files,
including a unwind.h file that conflicts with the unwind.h file that
is also shipped alongside compiler-rt.

When building clang itself with compiler-rt and libunwind (i.e. not
building everything separately like we do), however, that's not a
problem because it puts libunwind in a different directory than
compiler-rt.

So we change the clang repacking to follow a similar convention.

But because clang doesn't look for libraries under clang/lib/$arch, but
looks under clang/lib/$target instead, we also need to enable per-target
directories for libunwind.

But because clang also looks for libraries under clang/lib/$exact_target
rather than clang/lib/$relaxed_target (in Android's case, exact_target
might be aarch64-unknown-linux-android21, relaxed_target
aarch64-unknown-linux-android), we patch clang to apply the same kind of
fallbacks it does for runtimes for clang/lib.

Differential Revision: https://phabricator.services.mozilla.com/D173363
2023-03-23 00:25:57 +00:00
Andi-Bogdan Postelnicu
10f49d4180 Bug 1660405 - Move away from mozilla::IsNaN in favor of std::isnan. r=nbp,media-playback-reviewers,sergesanspaille,padenot
Differential Revision: https://phabricator.services.mozilla.com/D173035
2023-03-22 11:35:33 +00:00
Stanca Serban
e31a178029 Backed out 7 changesets (bug 1660405) for causing bustages on Linux x64 opt. CLOSED TREE
Backed out changeset ad1a5f59214f (bug 1660405)
Backed out changeset a39e95f0aafe (bug 1660405)
Backed out changeset 48629ee0d70d (bug 1660405)
Backed out changeset 8419b99aab60 (bug 1660405)
Backed out changeset 535cc12c8bed (bug 1660405)
Backed out changeset e27052da4927 (bug 1660405)
Backed out changeset 11b0f9cf8091 (bug 1660405)
2023-03-22 13:05:53 +02:00
Andi-Bogdan Postelnicu
a5d28acdd6 Bug 1660405 - Move away from mozilla::IsNaN in favor of std::isnan. r=nbp,media-playback-reviewers,sergesanspaille,padenot
Differential Revision: https://phabricator.services.mozilla.com/D173035
2023-03-22 09:27:56 +00:00
Nicolas Chevobbe
a1645740cc Bug 1815937 - Set ScriptLoadContext column number for inline scripts. r=smaug,devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D170580
2023-03-21 17:27:48 +00:00
Mike Hommey
03ca551286 Bug 1821221 - Switch Android builds to compiler-rt + libunwind. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D172076
2023-03-21 05:13:43 +00:00
Marian-Vasile Laza
1c28d89a7e Backed out 3 changesets (bug 1823335, bug 1815937, bug 1823399) for devtools failures on browser_dbg-features-breakable-positions.js. CLOSED TREE
Backed out changeset f931921c97f2 (bug 1823399)
Backed out changeset 077d67ccc0d5 (bug 1823335)
Backed out changeset 103bf8d93883 (bug 1815937)
2023-03-21 00:01:11 +02:00
Nicolas Chevobbe
4aa1bc2655 Bug 1815937 - Set ScriptLoadContext column number for inline scripts. r=smaug,devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D170580
2023-03-20 19:25:19 +00:00
Cristina Horotan
588b393945 Backed out 2 changesets (bug 1815937) for causing wpt failures at blockeduri-inline.html CLOSED TREE
Backed out changeset 668971329051 (bug 1815937)
Backed out changeset a4a3430c9bab (bug 1815937)
2023-03-17 15:52:33 +02:00
Nicolas Chevobbe
c0be3c7697 Bug 1815937 - Set ScriptLoadContext column number for inline scripts. r=smaug,devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D170580
2023-03-17 08:03:07 +00:00
Noemi Erli
2de6906fbc Backed out changeset 41589839f711 (bug 1821221) for causing build bustage CLOSED TREE 2023-03-17 00:43:28 +02:00
Mike Hommey
c53db6818d Bug 1821221 - Switch Android builds to compiler-rt + libunwind. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D172076
2023-03-16 21:39:24 +00:00
Kershaw Chang
79403e1620 Bug 1809843 - Add DoH server and Http/3 server into mochitest, r=necko-reviewers,ahal,valentin,gbrown,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D166644
2023-03-16 21:28:58 +00:00
Mike Hommey
eaca1f3dd4 Bug 1820947 - Use "new style" sysroot on Android. r=firefox-build-system-reviewers,andi
For a few NDK releases now, the situation has been simplified wrt
headers and libraries, and while we're currently still using things here
and there because we never changed our ways, we can simplify things a
lot by using the new simplified things. This involves:
- Using a --target that contains the Android version, making clang set
  __ANDROID_API__ itself, and makes it look in $sysroot/usr/lib/$target/$ver
  when linking.
- Using the sysroot that is under toolchains/llvm/prebuilt/*.
- Removing the hacks around libstdc++/libc++.

This ends up emptying stlport compiler flags, which allows to remove a
bunch of things.

Differential Revision: https://phabricator.services.mozilla.com/D172039
2023-03-15 20:44:02 +00:00
Norisz Fay
4a35828e21 Backed out 2 changesets (bug 1820947) for causing build bustage CLOSED TREE
Backed out changeset eb6419bb8748 (bug 1820947)
Backed out changeset 9990083e8ea2 (bug 1820947)
2023-03-14 01:20:54 +02:00
Mike Hommey
f5844f16c5 Bug 1820947 - Use "new style" sysroot on Android. r=firefox-build-system-reviewers,andi
For a few NDK releases now, the situation has been simplified wrt
headers and libraries, and while we're currently still using things here
and there because we never changed our ways, we can simplify things a
lot by using the new simplified things. This involves:
- Using a --target that contains the Android version, making clang set
  __ANDROID_API__ itself, and makes it look in $sysroot/usr/lib/$target/$ver
  when linking.
- Using the sysroot that is under toolchains/llvm/prebuilt/*.
- Removing the hacks around libstdc++/libc++.

This ends up emptying stlport compiler flags, which allows to remove a
bunch of things.

Differential Revision: https://phabricator.services.mozilla.com/D172039
2023-03-13 21:14:47 +00:00
Ben Hearsum
8e86487f21 Bug 1814727: add tasks for attributing en-US builds r=ahal,nalexander
Notably, the actual attribution code we're using is stored in `browser`. This was largely motivated by the fact that the subsequent revision in this stack will also need it, and this seemed like the best way to make it shareable between the two. The only alternative I could come up with was stuffing it into a transforms - but it's really just data - there's no reason it ought to live in such a place. (We do have precedent for this sort of thing with both locale and whats new page information, so I don't think it's breaking huge new ground.) Nick - I'm tagging you mainly on this part, but I welcome any other comments you may have (here or in the rest of the stack for that matter).

The other notable part of this patch is that I've _explicitly_ decided not to use the `multi_dep` loader, nor reimplement any of its magic pulling of properties in a transform. I find that this makes it more clear what's _actually_ going on, and easier to debug when making changes. The dwonside, of course, is that there's some verboseness in the kind - all platforms we need to run this for must be explicitly listed. I'm open to debate on whether or not this is the right trade-off, so feel free to push back if you disagree.

Differential Revision: https://phabricator.services.mozilla.com/D170243
2023-03-13 19:04:06 +00:00
Marian-Vasile Laza
ee72efd1e9 Backed out 5 changesets (bug 1809843) for causing Cargo related build bustages. CLOSED TREE
Backed out changeset 5c494680f448 (bug 1809843)
Backed out changeset 02742b38edab (bug 1809843)
Backed out changeset 2b9b32ca8294 (bug 1809843)
Backed out changeset 56631cb02ae6 (bug 1809843)
Backed out changeset 37e35a60a71f (bug 1809843)
2023-03-13 13:53:26 +02:00
Kershaw Chang
2b54ddaca8 Bug 1809843 - Add DoH server and Http/3 server into mochitest, r=necko-reviewers,ahal,valentin,gbrown,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D166644
2023-03-13 11:12:32 +00:00
Mike Hommey
22af5046bf Bug 1820919 - Apply clang trunk patches related to symlinks. r=firefox-build-system-reviewers,andi
To replace our own patch, which now conflicts with clang trunk.
We don't build clang 14 for Windows, so we just remove the patch for
clang 14.

Differential Revision: https://phabricator.services.mozilla.com/D172059
2023-03-09 22:21:23 +00:00
Mike Hommey
a0388593b5 Bug 1820919 - Revert clang trunk change that conflicts with another revert. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D171957
2023-03-09 22:21:23 +00:00
Mike Hommey
08c5bf14ec Bug 1820946 - Stop implying a toolchain prefix for Android builds. r=firefox-build-system-reviewers,andi
This used to be necessary, but since we switched most things to use LLVM
tools instead of binutils ones, this has become less useful.

Differential Revision: https://phabricator.services.mozilla.com/D171956
2023-03-08 20:23:43 +00:00
Mike Hommey
98a59b9e61 Bug 1820946 - Remove old NDK directories. r=firefox-build-system-reviewers,andi
The NDK detection has some code that remains from older NDKs that we
don't support anymore.

Differential Revision: https://phabricator.services.mozilla.com/D171955
2023-03-08 20:23:43 +00:00
Mike Hommey
55d47e4aa0 Bug 1820946 - Remove -fno-exceptions from Android-specific compiler flags. r=firefox-build-system-reviewers,andi
It is already added globally.

Differential Revision: https://phabricator.services.mozilla.com/D171954
2023-03-08 20:23:42 +00:00
Mike Hommey
0a19976465 Bug 1820946 - Remove special case for libatomic with clang on Linux x86. r=firefox-build-system-reviewers,andi
Apparently, the problem that this worked around doesn't happen anymore.

Differential Revision: https://phabricator.services.mozilla.com/D171953
2023-03-08 20:23:42 +00:00
Mike Hommey
0db8c3eb0f Bug 1820946 - Pass armv7 related flags to bindgen. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D171952
2023-03-08 20:23:42 +00:00
Mike Hommey
6d7d562d0a Bug 1820946 - Avoid duplication of Android flags between python and autoconf configure. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D171951
2023-03-08 20:23:41 +00:00
Mike Hommey
efd791965b Bug 1820946 - Remove unused Android related variables from the build system. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D171950
2023-03-08 20:23:41 +00:00
John Schanck
4728b65771 Bug 1815435 - land NSS NSS_3_89_BETA4 UPGRADE_NSS_RELEASE, r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D171916
2023-03-08 00:15:30 +00:00
Cristian Tuns
260d13ed8e Backed out changeset 48c77e0f9262 (bug 1815435) for causing xpcshell failures in test_cert_overrides.js CLOSED TREE UPGRADE_NSS_RELEASE 2023-03-06 16:33:38 -05:00
John Schanck
7800d03501 Bug 1815435 - land NSS NSS_3_89_BETA3 UPGRADE_NSS_RELEASE, r=djackson
Differential Revision: https://phabricator.services.mozilla.com/D171757
2023-03-06 20:17:40 +00:00
Sandor Molnar
d5d3dff294 Backed out changeset 692727a38d4d (bug 1815435) for causing build bustage in /security/nss/lib/ssl/ssl3ext.c UPGRADE_NSS_RELEASE CLOSED TREE 2023-03-03 01:54:42 +02:00
John Schanck
4008eb15f1 Bug 1815435 - land NSS NSS_3_89_BETA1 UPGRADE_NSS_RELEASE, r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D171511
2023-03-02 23:31:19 +00:00
Andreas Pehrson
07d7c2dcab Bug 1800213 - Allow the existing (but now as nsThreads) VideoCapture and DesktopCapture threads. r=KrisWright
VideoCapture used to be a base::Thread called VideoCapture.
DesktopCapture used to be a rtc::PlatformThread/PlatformUIThread called ScreenCaptureThread.

Differential Revision: https://phabricator.services.mozilla.com/D166061
2023-02-28 14:32:42 +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
fe6592f43b Bug 1817900 - Update num_cpus to 1.15.0. r=emilio,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D170445
2023-02-23 01:17:30 +00:00
serge-sans-paille
d99a9ba23b Bug 1805664 - Setup python toolchain tasks and add them to the build system r=glandium
This patch introduces:

1. fetch jobs to fetch python source / installer
2. a) build jobs to build python from source on Linux and OSX
   b) build job to manually extract python tree from Windows installer

Some details, per category:

(1) fetches Python 3.8.10 (source) and 3.8.10 (installer).

(2.a) the builds generate optimized version of Python (LTO + PGO)

(2.a) the builds are patched to honor MOZPYTHONHOME instead of
      PYTHONHOME. This is used to make OSX builds relocatable, and not
      needed on Windows.

(2) zstandard and psutil are added to the default build

Differential Revision: https://phabricator.services.mozilla.com/D164663
2023-02-22 06:24:51 +00:00
Mike Hommey
fac2583920 Bug 1817894 - Force-disable terminfo in clang. r=firefox-build-system-reviewers,andi
Bug 1805664 had the side effect of installing terminfo libraries on the
toolchain docker image, which led to clang gaining a dependency on
libtinfo, leading to multiple failures, like PGO run jobs failing with
llvm-profdata failing to load the new dependency, or tsan tests failing
because llvm-symbolizer doesn't work because of the new dependency not
being fulfilled, which in turn breaks TSAN suppressions.

Differential Revision: https://phabricator.services.mozilla.com/D170417
2023-02-21 08:32:33 +00:00
Mike Hommey
4b06fce63f Bug 1810223 - Avoid relying on the preprocessor to check the WINVER_MAXVER value in the Windows SDK. r=firefox-build-system-reviewers,andi
We're going to (ab)use the configure scripts to get the right SDK
locations for msix repackaging, and it would be preferable to avoid
requiring the preprocessor for that.

Differential Revision: https://phabricator.services.mozilla.com/D170171
2023-02-20 21:58:47 +00:00
Cosmin Sabou
df1206468f Backed out changeset 5c47ae2de529 (bug 1805664) for causing bug 1817894 and breaking clang 15. CLOSED TREE 2023-02-21 03:21:39 +02:00
Mike Hommey
6124c8c443 Bug 1817874 - Remove leftover of bug47258-extract-symbols-mbcs.patch. r=aryx CLOSED TREE
The patch was removed in bug 1815364 because we actually don't need it,
but there was some leftover.

Differential Revision: https://phabricator.services.mozilla.com/D170415
2023-02-21 00:01:54 +00:00
serge-sans-paille
dd99819744 Bug 1805664 - Setup python toolchain tasks and add them to the build system r=glandium CLOSED TREE
This patch introduces:

1. fetch jobs to fetch python source / installer
2. a) build jobs to build python from source on Linux and OSX
   b) build job to manually extract python tree from Windows installer

Some details, per category:

(1) fetches Python 3.8.10 (source) and 3.8.10 (installer).

(2.a) the builds generate optimized version of Python (LTO + PGO)

(2.a) the builds are patched to honor MOZPYTHONHOME instead of
      PYTHONHOME. This is used to make OSX builds relocatable, and not
      needed on Windows.

(2) zstandard and psutil are added to the default build

Differential Revision: https://phabricator.services.mozilla.com/D164663
2023-02-20 16:07:55 +00:00
Iulian Moraru
9bb81cbca0 Backed out changeset cae102c770b7 (bug 1805664) for causing toolchain clang failures. CLOSED TREE 2023-02-20 19:35:34 +02:00
serge-sans-paille
c6cf60f3dd Bug 1805664 - Setup python toolchain tasks and add them to the build system r=glandium
This patch introduces:

1. fetch jobs to fetch python source / installer
2. a) build jobs to build python from source on Linux and OSX
   b) build job to manually extract python tree from Windows installer

Some details, per category:

(1) fetches Python 3.8.10 (source) and 3.8.10 (installer).

(2.a) the builds generate optimized version of Python (LTO + PGO)

(2.a) the builds are patched to honor MOZPYTHONHOME instead of
      PYTHONHOME. This is used to make OSX builds relocatable, and not
      needed on Windows.

(2) zstandard and psutil are added to the default build

Differential Revision: https://phabricator.services.mozilla.com/D164663
2023-02-20 16:07:55 +00:00
Mike Hommey
2aa6aa8213 Bug 1817372 - Use the new windows target triplets on automation. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D170170
2023-02-17 07:42:48 +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
Mike Hommey
0ea0ba74cc Bug 1816443 - Use auto-bootstrap code to bootstrap clang-tidy in both bootstrap and code-analysis. r=andi,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D168962
2023-02-16 22:06:01 +00:00
Mike Hommey
56367314c0 Bug 1786338 - Apply upstream patch fixing slop issues on aarch64 mac. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D169858
2023-02-16 01:06:34 +00:00
Makoto Kato
8d4bc253e5 Bug 1814802 - Move STLPORT_LIBS to moz.configure. r=firefox-build-system-reviewers,glandium
android.m4 has old code for old NDK that we don't support, so this fix removes it.

Differential Revision: https://phabricator.services.mozilla.com/D168761
2023-02-14 02:29:22 +00:00
Mike Hommey
667769a3b7 Bug 1815364 - Remove bug47258-extract-symbols-mbcs.patch. r=firefox-build-system-reviewers,ahochheiden
The patch was added back in bug 1661129 to work around
https://bugs.llvm.org/show_bug.cgi?id=47258 and the patch now doesn't
apply anymore after changes on clang trunk. OTOH, it also seems that the
problem described in the llvm bug report doesn't happen anymore, so just
get rid of the patch.

Differential Revision: https://phabricator.services.mozilla.com/D169292
2023-02-14 00:17:13 +00:00
Andi-Bogdan Postelnicu
d7e8a09c21 Bug 1519636 - Reformat recent changes to the Google coding style. r=glandium
Updated with clang-format version 15.0.5 (taskcluster-MKK8dHUpQkGfPLA793lizg)
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D168658
2023-02-13 15:02:07 +00:00
ogiorgis
b42b079b39 Bug 1803426 - upload images not in a docs folder and fix warnings r=firefox-source-docs-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D167942
2023-02-07 15:32:37 +00:00
John Lin
579e5d2ac3 Bug 1810817 - p7: implement CDMProxy for MF CDM and create/init it in MediaKeys. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D167061
2023-02-07 03:43:51 +00:00
Julien Cristau
194799e013 No bug - docs: update link to pycert/pykey. r=aryx DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D168938
2023-02-06 10:51:19 +00:00
Csoregi Natalia
7468edeb58 Backed out 7 changesets (bug 1810817) for causing assertion failures on MFCDMParent.cpp. CLOSED TREE
Backed out changeset cfbe0be01c67 (bug 1810817)
Backed out changeset eedaee18c125 (bug 1810817)
Backed out changeset 07bcec895e6b (bug 1810817)
Backed out changeset 4be39a7ba24f (bug 1810817)
Backed out changeset e16e293637cf (bug 1810817)
Backed out changeset 0c66474f6010 (bug 1810817)
Backed out changeset 3c7aa682681f (bug 1810817)
2023-02-05 17:56:58 +02:00
John Lin
bf8b1c29dd Bug 1810817 - p7: implement CDMProxy for MF CDM and create/init it in MediaKeys. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D167061
2023-02-05 03:40:03 +00:00
Sebastian Hengst
0bf957f909 Bug 1815090 - regenerate certificates in build/pgo/certs/. a=me
* the build/pgo/certs/ changes were made using
  `./mach python build/pgo/genpgocert.py`
2023-02-05 13:12:06 +01:00
Mike Hommey
11cf68787b Bug 1699228 - Update contribution quickref to point to the list of supported windows versions. r=firefox-build-system-reviewers,sylvestre,andi
Differential Revision: https://phabricator.services.mozilla.com/D168554
2023-02-01 16:38:27 +00:00
Mike Hommey
3f793f3d90 Bug 1812974 - Remove cctools dependency for clang toolchains. r=firefox-build-system-reviewers,ahochheiden
The non-raw clang toolchains do still need cctools for lipo when
aggregating the compiler-rts.

Differential Revision: https://phabricator.services.mozilla.com/D168034
2023-02-01 15:09:39 +00:00
Mike Hommey
e24baca557 Bug 1812974 - Remove some unnecessary flags. r=firefox-build-system-reviewers,ahochheiden
These flags used to be necessary when we first were cross-compiling
clang, but more recent (although now old) changes have made them
actually unnecessary.

Differential Revision: https://phabricator.services.mozilla.com/D168033
2023-02-01 15:09:39 +00:00
Stanca Serban
4bb42b9d45 Backed out 7 changesets (bug 1812974) for clang bustages. CLOSED TREE
Backed out changeset 839cf7e96788 (bug 1812974)
Backed out changeset b65050508523 (bug 1812974)
Backed out changeset 10c5442e487c (bug 1812974)
Backed out changeset 2185787a02c0 (bug 1812974)
Backed out changeset 2191a1c60417 (bug 1812974)
Backed out changeset 4074d5e1544d (bug 1812974)
Backed out changeset 1c6b291568f1 (bug 1812974)
2023-02-01 14:08:25 +02:00
Mike Hommey
00373f5e4b Bug 1812974 - Remove some unnecessary flags. r=firefox-build-system-reviewers,ahochheiden
These flags used to be necessary when we first were cross-compiling
clang, but more recent (although now old) changes have made them
actually unnecessary.

Differential Revision: https://phabricator.services.mozilla.com/D168033
2023-02-01 10:59:35 +00:00
Mike Hommey
5742849bde Bug 1773743 - Change the minimum required macos SDK to 13.0. r=firefox-build-system-reviewers,spohl,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D167773
2023-02-01 10:14:12 +00:00