Commit Graph

2034 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
Mike Hommey
17b3f43531 Bug 1522986 - Allow to auto-bootstrap the macos SDK. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D167772
2023-02-01 09:45:11 +00:00
Mike Hommey
4bfa46899a Bug 1522986 - Add auto-bootstrap support for private local toolchains. r=firefox-build-system-reviewers,ahochheiden
Per the previous commit, the task definitions now can be used to get a
command that can be used to generate the toolchain locally.

Differential Revision: https://phabricator.services.mozilla.com/D167771
2023-02-01 09:45:11 +00:00
Chris Peterson
eb00c7365e Bug 1807583 - Enable -Wtautological-constant-in-range-compare warnings. r=firefox-build-system-reviewers,glandium
There are no -Wtautological-constant-in-range-compare warnings in C or C++ code in mozilla-central, so we can enable this warning.

However, the -Wtautological-constant-in-range-compare flag also enables -Wtautological-value-range-compare warnings and there are some -Wtautological-value-range-compare warnings in some third-party C code.

I filed https://bugs.chromium.org/p/google-breakpad/issues/detail?id=859 for the Google Breakpad warning.

---

toolkit/crashreporter/google-breakpad/src/third_party/libdisasm/ia32_invariant.c:112:30 [-Wtautological-value-range-compare] result of comparison of 3-bit unsigned value == 101 is always false

js/src/zydis/Zydis/Decoder.c:2200:43 [-Wtautological-value-range-compare] result of comparison of 2-bit unsigned value < 4 is always true
js/src/zydis/Zydis/Decoder.c:2213:43 [-Wtautological-value-range-compare] result of comparison of 2-bit unsigned value < 4 is always true
js/src/zydis/Zydis/Decoder.c:2226:43 [-Wtautological-value-range-compare] result of comparison of 2-bit unsigned value < 4 is always true
js/src/zydis/Zydis/Decoder.c:3650:46 [-Wtautological-value-range-compare] result of comparison of 3-bit unsigned value < 8 is always true
js/src/zydis/Zydis/SharedData.c:119:47 [-Wtautological-value-range-compare] result of comparison of 15-bit unsigned value != 65535 is always true

third_party/aom/aom_dsp/intrapred.c:94:3 [-Wtautological-value-range-compare] result of comparison of 4-bit unsigned value < 31 is always true
third_party/aom/aom_dsp/intrapred.c:123:3 [-Wtautological-value-range-compare] result of comparison of 4-bit unsigned value < 31 is always true
third_party/aom/aom_dsp/intrapred.c:152:3 [-Wtautological-value-range-compare] result of comparison of 4-bit unsigned value < 31 is always true
third_party/aom/aom_dsp/intrapred.c:413:3 [-Wtautological-value-range-compare] result of comparison of 4-bit unsigned value < 31 is always true
third_party/aom/aom_dsp/intrapred.c:444:3 [-Wtautological-value-range-compare] result of comparison of 4-bit unsigned value < 31 is always true
third_party/aom/aom_dsp/intrapred.c:475:3 [-Wtautological-value-range-compare] result of comparison of 4-bit unsigned value < 31 is always true

Differential Revision: https://phabricator.services.mozilla.com/D165522
2023-01-20 04:53:27 +00:00
Natalia Kulatova
6940237fdb Bug 1808725 - land NSS NSS_3_88_BETA1 UPGRADE_NSS_RELEASE, r=nss-reviewers,jschanck
Differential Revision: https://phabricator.services.mozilla.com/D167294
2023-01-19 19:22:53 +00:00
Mike Hommey
adb58838c7 Bug 1747145 - Add more configure checks for the wasm toolchain setup. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D166977
2023-01-18 23:39:05 +00:00
Mike Hommey
aef464f175 Bug 1747145 - Only apply stlport flags to configure compiler executions for target. r=firefox-build-system-reviewers,andi
(as opposed to host or wasm)

Differential Revision: https://phabricator.services.mozilla.com/D167112
2023-01-18 23:39:04 +00:00
Noemi Erli
21d20eb1c0 Backed out 3 changesets (bug 1747145, bug 1810627) for causing mochitest failures in /test_webassembly_compile.html
Backed out changeset b49ff59bb2cd (bug 1810627)
Backed out changeset 3be300874393 (bug 1747145)
Backed out changeset 2cd1b61ddd24 (bug 1747145)
2023-01-18 13:04:08 +02:00
Mike Hommey
f369efa9a4 Bug 1747145 - Add more configure checks for the wasm toolchain setup. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D166977
2023-01-18 08:07:24 +00:00
Mike Hommey
1f7d2749b0 Bug 1747145 - Only apply stlport flags to configure compiler executions for target. r=firefox-build-system-reviewers,andi
(as opposed to host or wasm)

Differential Revision: https://phabricator.services.mozilla.com/D167112
2023-01-18 08:07:23 +00:00
Noemi Erli
cf1f195897 Backed out changeset d9c33212d62e (bug 1807583) for causing build bustage CLOSED TREE 2023-01-18 09:02:54 +02:00
Norisz Fay
c1fa36ebc4 Backed out 2 changesets (bug 1810627, bug 1747145) for causing build bustages CLOSED TREE
Backed out changeset 93b94212020f (bug 1810627)
Backed out changeset b5d3998c113c (bug 1747145)
2023-01-18 04:37:58 +02:00
Chris Peterson
4a90b146bd Bug 1807583 - Enable -Wtautological-constant-in-range-compare warnings. r=firefox-build-system-reviewers,glandium
There are no -Wtautological-constant-in-range-compare warnings in C or C++ code in mozilla-central, so we can enable this warning.

However, the -Wtautological-constant-in-range-compare flag also enables -Wtautological-value-range-compare warnings and there are some -Wtautological-value-range-compare warnings in some third-party C code.

I filed https://bugs.chromium.org/p/google-breakpad/issues/detail?id=859 for the Google Breakpad warning.

---

toolkit/crashreporter/google-breakpad/src/third_party/libdisasm/ia32_invariant.c:112:30 [-Wtautological-value-range-compare] result of comparison of 3-bit unsigned value == 101 is always false

js/src/zydis/Zydis/Decoder.c:2200:43 [-Wtautological-value-range-compare] result of comparison of 2-bit unsigned value < 4 is always true
js/src/zydis/Zydis/Decoder.c:2213:43 [-Wtautological-value-range-compare] result of comparison of 2-bit unsigned value < 4 is always true
js/src/zydis/Zydis/Decoder.c:2226:43 [-Wtautological-value-range-compare] result of comparison of 2-bit unsigned value < 4 is always true
js/src/zydis/Zydis/Decoder.c:3650:46 [-Wtautological-value-range-compare] result of comparison of 3-bit unsigned value < 8 is always true
js/src/zydis/Zydis/SharedData.c:119:47 [-Wtautological-value-range-compare] result of comparison of 15-bit unsigned value != 65535 is always true

third_party/aom/aom_dsp/intrapred.c:94:3 [-Wtautological-value-range-compare] result of comparison of 4-bit unsigned value < 31 is always true
third_party/aom/aom_dsp/intrapred.c:123:3 [-Wtautological-value-range-compare] result of comparison of 4-bit unsigned value < 31 is always true
third_party/aom/aom_dsp/intrapred.c:152:3 [-Wtautological-value-range-compare] result of comparison of 4-bit unsigned value < 31 is always true
third_party/aom/aom_dsp/intrapred.c:413:3 [-Wtautological-value-range-compare] result of comparison of 4-bit unsigned value < 31 is always true
third_party/aom/aom_dsp/intrapred.c:444:3 [-Wtautological-value-range-compare] result of comparison of 4-bit unsigned value < 31 is always true
third_party/aom/aom_dsp/intrapred.c:475:3 [-Wtautological-value-range-compare] result of comparison of 4-bit unsigned value < 31 is always true

Differential Revision: https://phabricator.services.mozilla.com/D165522
2023-01-18 02:04:53 +00:00
Mike Hommey
2cea3ab762 Bug 1747145 - Add more configure checks for the wasm toolchain setup. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D166977
2023-01-18 01:08:11 +00:00
serge-sans-paille
8b991af173 Bug 1804226 - fma3 support for AudioNodeEngine r=padenot
Update xsimd dependency to integrate an fma portability patch.
Add support for fma and sse4.2 detection.

Differential Revision: https://phabricator.services.mozilla.com/D163927
2023-01-16 11:05:20 +00:00
Cosmin Sabou
251ada4676 Backed out 3 changesets (bug 1801557, bug 1804226) for causing Bug 1810251. a=backout
Backed out changeset 99419440af5c (bug 1804226)
Backed out changeset 741734906105 (bug 1801557)
Backed out changeset 6bb3ced40693 (bug 1801557)
2023-01-14 01:30:07 +02:00
serge-sans-paille
23f6cd371e Bug 1804226 - fma3 support for AudioNodeEngine r=padenot
Update xsimd dependency to integrate an fma portability patch.
Add support for fma and sse4.2 detection.

Differential Revision: https://phabricator.services.mozilla.com/D163927
2023-01-13 13:31:44 +00:00
Norisz Fay
8dc1a8ef3c Backed out 3 changesets (bug 1804226, bug 1801557) for causing failures on AudioNodeEngineGeneric.h CLOSED TREE
Backed out changeset fc718f9cc51d (bug 1804226)
Backed out changeset 8409212faaf1 (bug 1801557)
Backed out changeset 49c08aab9622 (bug 1801557)
2023-01-10 14:16:40 +02:00
serge-sans-paille
aebf685769 Bug 1804226 - fma3 support for AudioNodeEngine r=padenot
Update xsimd dependency to integrate an fma portability patch.
Add support for fma and sse4.2 detection.

Differential Revision: https://phabricator.services.mozilla.com/D163927
2023-01-10 10:22:34 +00:00
Emilio Cobos Álvarez
845b5ad84f Bug 1806727 - Add an option to easily build with release configuration. r=glandium
This doesn't build with release branding, but allows you to create a
nightly build that has all the settings that we have on release, which
will be useful for profiling.

I could use --enable-release with a bit of effort, if you prefer
(probably renaming the current version of --enable-release to something
else).

All-in-all, suggestions welcome on this approach.

Differential Revision: https://phabricator.services.mozilla.com/D165219
2023-01-10 09:27:26 +00:00
Cristian Tuns
af7d7f81ec Backed out 3 changesets (bug 1804226, bug 1801557) for causing build bustages on AudioNodeEngineGeneric.h CLOSED TREE
Backed out changeset 4615951ea4dd (bug 1804226)
Backed out changeset c401e374a769 (bug 1801557)
Backed out changeset 5d265c462faf (bug 1801557)
2023-01-05 16:32:51 -05:00
serge-sans-paille
0aefae5322 Bug 1804226 - fma3 support for AudioNodeEngine r=padenot
Update xsimd dependency to integrate an fma portability patch.
Add support for fma and sse4.2 detection.

Differential Revision: https://phabricator.services.mozilla.com/D163927
2023-01-05 21:08:17 +00:00
Makoto Kato
4ebfb48f7e Bug 1807522 - Upgrade build-tools to 33.0.1. r=geckoview-reviewers,calu
When upgrading SDK to 33, I cannot build GeckoView on Windows workstation
during processing AIDL due to https://issuetracker.google.com/issues/236167971
that is fixed by 33.0.1.

Differential Revision: https://phabricator.services.mozilla.com/D165514
2023-01-05 02:56:32 +00:00