Commit Graph

1123 Commits

Author SHA1 Message Date
Mike Hommey
527cda6f68 Bug 1806470 - Still set some build-id on local builds. r=firefox-build-system-reviewers,andi
Bug 1796518 removed the build-id on local builds because it's faster to
do so, but it may be desirable to still have /some/ build-id, even if
it's random, so use a uuid on local builds instead of none at all.

Differential Revision: https://phabricator.services.mozilla.com/D166615
2023-01-12 20:54:52 +00:00
Mike Hommey
237727fbe0 Bug 1804605 - Remove leftovers from bug 1520340. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D164186
2022-12-12 21:43:52 +00:00
Mike Hommey
9170271cd5 Bug 1804605 - Move MOZ_DATA_REPORTING to python configure. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D164185
2022-12-12 21:43:52 +00:00
Mike Hommey
97cebe501d Bug 1804605 - Stop setting MOZ_DISTRIBUTION_ID as a global define. r=firefox-build-system-reviewers,nalexander
There's only one place using the define.

Differential Revision: https://phabricator.services.mozilla.com/D164184
2022-12-12 21:43:51 +00:00
Mike Hommey
b2cc8ec2c0 Bug 1802228 - Select a host linker in the same manner we do for the target linker. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D162912
2022-11-25 01:56:38 +00:00
Mike Hommey
402fce07b9 Bug 1796518 - Tweak lld flags for faster linkage on developer builds. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D159832
2022-10-25 22:58:25 +00:00
Mike Hommey
8f4d47c529 Bug 1795207 - Move the remainder of warning flags setup in old-configure to python. r=firefox-build-system-reviewers,andi
While we're here, make the setup more consistent across host/target
c/c++, and remove the C compiler warning flags from the C linker flags,
where they are irrelevant.

Differential Revision: https://phabricator.services.mozilla.com/D159358
2022-10-18 19:46:44 +00:00
Mike Hommey
859225f457 Bug 1762484 - Enable most of the same warnings on Windows as on other platforms. r=firefox-build-system-reviewers,andi
This moves the manual addition of some flags from old-configure to
python configure, and disables the set of flags that still trigger a
bunch of warnings (which -Werror turns into bustage).

Differential Revision: https://phabricator.services.mozilla.com/D144406
2022-04-25 22:21:31 +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
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
Mike Hommey
030d0c0e9e Bug 1752252 - Remove leftovers from bug 1741205. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D137096
2022-01-28 00:20:46 +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
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
54705f6ba5 Bug 1752060 - Make -fno-strict-aliasing a globally used flag. r=firefox-build-system-reviewers,andi
and make it override-able per directory.

Differential Revision: https://phabricator.services.mozilla.com/D136977
2022-01-27 00:07:12 +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
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
Iulian Moraru
f2f55d39bc Backed out changeset ffdd096022f9 (bug 1747970) for causing android build bustages. CLOSED TREE 2022-01-19 02:20:04 +02:00
Mike Hommey
464471142b 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-18 23:53:38 +00:00
Mike Hommey
0be843a7f9 Bug 1747970 - Remove check for fdatasync. r=firefox-build-system-reviewers,mhentges
AC_CHECK_FUNC doesn't automatically set HAVE_$function defines
(AC_CHECK_FUNCS does, confusing much?). Which means practically
speaking, the check is not useful. There _are_ #ifdef HAVE_FDATASYNC
in sqlite, but fdatasync is notably broken on older kernels, and while
lmdb has runtime workarounds for that, sqlite doesn't. It might be fine
to enable the sqlite code because those kernels are old, but this is
not a straightforward decision to make at the build system level, so
we'll handle that in a followup.

Differential Revision: https://phabricator.services.mozilla.com/D134855
2021-12-31 06:50:29 +00:00
Mike Hommey
c549b5fe68 Bug 1747970 - Remove check for lchown. r=firefox-build-system-reviewers,mhentges
HAVE_LCHOWN is only used in nsinstall.c, for a feature we don't use.
Moreover it would need to be tested with the host compiler/headers, but
function checks are tested with the target compiler/headers so it's not
necessarily accurate. Therefore, we just remove the check.

Differential Revision: https://phabricator.services.mozilla.com/D134854
2021-12-31 06:50:29 +00:00
Mike Hommey
1acc37c7a6 Bug 1747756 - Move Windows system libraries from LIBS to moz.build. r=firefox-build-system-reviewers,mhentges
While mingw builds don't require user32 and advapi32 explicitly, it doesn't
hurt for them to be there (and they're required for clang-cl build).
Likewise, while clang-builds don't require uuid and userenv explicitly
because they're pulled in via #pragmas in the source code, mingw doesn't
support those #pragmas and needs them explicitly, which doesn't hurt the
clang-cl builds.

Differential Revision: https://phabricator.services.mozilla.com/D134737
2021-12-30 20:56:43 +00:00
Mike Hommey
a25d0c97d9 Bug 1747856 - Move MOZ_NO_SMART_CARDS to python configure. r=firefox-build-system-reviewers,geckoview-reviewers,mhentges,calu
Differential Revision: https://phabricator.services.mozilla.com/D134770
2021-12-30 00:54:02 +00:00
Mike Hommey
a1425cc7d4 Bug 1747855 - Move --disable-updater to python configure. r=firefox-build-system-reviewers,geckoview-reviewers,mhentges,calu
Differential Revision: https://phabricator.services.mozilla.com/D134769
2021-12-30 00:54:02 +00:00
Mike Hommey
cc5858cdcc Bug 1747854 - Move MOZ_ENABLE_CAIRO_FT and CAIRO_FT_CFLAGS to python configure. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D134768
2021-12-30 00:54:01 +00:00
Mike Hommey
8e77ff90db Bug 1747853 - Move linux/joystick.h check to python configure. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D134767
2021-12-30 00:54:01 +00:00
Mike Hommey
c0b85dcb38 Bug 1747852 - Move MOZ_WEBRTC_HAVE_ETHTOOL_SPEED_HI to python configure. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D134766
2021-12-30 00:54:00 +00:00
Iulian Moraru
b469802d84 Backed out changeset 7f9b4b6191ad (bug 1747756) for causing multiple failures. CLOSED TREE 2021-12-30 01:59:26 +02:00
Mike Hommey
cb50a5444f Bug 1747756 - Move Windows system libraries from LIBS to moz.build. r=firefox-build-system-reviewers,mhentges
While mingw builds don't require user32 and advapi32 explicitly, it doesn't
hurt for them to be there (and they're required for clang-cl build).
Likewise, while clang-builds don't require uuid and userenv explicitly
because they're pulled in via #pragmas in the source code, mingw doesn't
support those #pragmas and needs them explicitly, which doesn't hurt the
clang-cl builds.

Differential Revision: https://phabricator.services.mozilla.com/D134737
2021-12-29 22:18:52 +00:00
Mike Hommey
7651ef8935 Bug 1747755 - Remove MOZ_ARG_HEADER. r=firefox-build-system-reviewers,mhentges
The remaining uses are outdated and not actually exposed anywhere.

Differential Revision: https://phabricator.services.mozilla.com/D134735
2021-12-29 22:18:51 +00:00
Mike Hommey
da46f063dc Bug 1747754 - Move --with-android-min-sdk to python configure. r=firefox-build-system-reviewers,geckoview-reviewers,mhentges,calu
And remove --with-android-max-sdk, which hasn't been used since the
removal of Fennec.

Differential Revision: https://phabricator.services.mozilla.com/D134734
2021-12-29 22:18:51 +00:00
Mike Hommey
f48dc2dbb0 Bug 1747753 - Remove 16k alignment enforcement for < ARMv7. r=firefox-build-system-reviewers,mhentges
We don't support Android ARMv6 devices anymore, and even if we did,
we're not using the code that required 16k alignment anymore (on-demand
decompression of libraries).

Differential Revision: https://phabricator.services.mozilla.com/D134733
2021-12-29 22:18:50 +00:00
Mike Hommey
971775cd07 Bug 1747502 - Move A11Y_LOG to python configure. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D134644
2021-12-29 22:12:46 +00:00
Mike Hommey
f094186c6f Bug 1747501 - Move ZLIB_IN_MOZGLUE to python configure. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D134643
2021-12-29 22:12:45 +00:00
Mike Hommey
9ea3f97b39 Bug 1747500 - Move MOZ_LINKER to python configure. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D134642
2021-12-29 22:12:45 +00:00
Mike Hommey
eac8ebc4e8 Bug 1747499 - Move pthread_cond_timedwait_monotonic_np check to python configure. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D134641
2021-12-29 22:12:45 +00:00
Mike Hommey
a862a3a0cf Bug 1747498 - Move SIMD flags to python configure. r=firefox-build-system-reviewers,mhentges
And because we don't support MSVC anymore, we can use the GCC-style
flags everywhere.

Differential Revision: https://phabricator.services.mozilla.com/D134640
2021-12-29 22:12:44 +00:00
Mike Hommey
0ecd63d2c2 Bug 1747325 - Remove checks against system freetype. r=firefox-build-system-reviewers,andi
By upgrading the requirement to freetype 9.10.3 (actually 2.2.0,
released > 15 years ago ; the .pc version doesn't match the freetype
version), we ensure all supported versions of freetype have the things
we were checking for.

Differential Revision: https://phabricator.services.mozilla.com/D134565
2021-12-23 20:50:39 +00:00
Mike Hommey
522946f765 Bug 1747324 - Remove check for fontconfig/fcfreetype.h. r=firefox-build-system-reviewers,andi
All supported versions of fontconfig have it.

Differential Revision: https://phabricator.services.mozilla.com/D134564
2021-12-23 20:50:39 +00:00
Mike Hommey
efd23948af Bug 1747322 - Move sockaddr_* length field checks to python configure. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D134562
2021-12-23 20:50:38 +00:00
Mike Hommey
f6dcab80de Bug 1747321 - Remove HAVE_TOOLCHAIN_SUPPORT_{MSSSE3,MSSE4_1} and HAVE_X86_AVX2. r=firefox-build-system-reviewers,andi
All supported compilers support have them set to 1 on x86/x86_64.

Differential Revision: https://phabricator.services.mozilla.com/D134561
2021-12-23 20:50:37 +00:00
Mike Hommey
4894650862 Bug 1747165 - Move Gtk+3 checks to python configure. r=firefox-build-system-reviewers,mhentges
Also fix checked glib version and remove unused CAIRO_VERSION.

Differential Revision: https://phabricator.services.mozilla.com/D134465
2021-12-23 20:29:08 +00:00
Mike Hommey
fce6eb7d83 Bug 1747165 - Replace TK_FLAGS/TK_LIBS with MOZ_GTK3_FLAGS/MOZ_GTK3_LIBS. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D134464
2021-12-23 20:29:07 +00:00
Cristian Tuns
e1e31e01f2 Backed out 2 changesets (bug 1747165) for causing nightly blockers(bustages) a=backout
Backed out changeset 4b1ab0915c94 (bug 1747165)
Backed out changeset 96043d814772 (bug 1747165)
2021-12-23 08:00:54 -05:00
Mike Hommey
12435c092b Bug 1747165 - Move Gtk+3 checks to python configure. r=firefox-build-system-reviewers,mhentges
Also fix checked glib version and remove unused CAIRO_VERSION.

Differential Revision: https://phabricator.services.mozilla.com/D134465
2021-12-22 23:56:24 +00:00
Mike Hommey
b55194a16f Bug 1747165 - Replace TK_FLAGS/TK_LIBS with MOZ_GTK3_FLAGS/MOZ_GTK3_LIBS. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D134464
2021-12-22 23:56:24 +00:00
Sandor Molnar
c009d9f45b Backed out changeset e5de1d0915a4 (bug 1359918) for causing bug 1746715. CLOSED TREE 2021-12-22 22:43:41 +02:00