Commit graph

1207 commits

Author SHA1 Message Date
serge-sans-paille
50b32b0a99 Bug 1897973 - Move MOZ_TOOL_VARIABLES from old-configure to moz.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D211090
2024-06-04 09:42:13 +00:00
serge-sans-paille
4c80e08fec Bug 1899097 - No longer use GNU_CC CLANG_CC and the likes in old-configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D211719
2024-06-04 09:42:12 +00:00
serge-sans-paille
6193636f9b Bug 1897978 - Move MOZ_ANDROID_NDK from old-configure to moz.configure r=glandium
Also remove the rustc < 1.68 hack, as we no longer support that version.

Differential Revision: https://phabricator.services.mozilla.com/D211091
2024-06-04 09:42:11 +00:00
serge-sans-paille
53c408f3bc Bug 1894951 - Move MOZ_CHECK_ALLOCATOR to moz.configure r=glandium
MOZ_CHECK_ALLOCATOR was defining HAVE_VALLOC and HAVE_ALIGNED_MALLOC
which are unused, so get rid of these checks.

Differential Revision: https://phabricator.services.mozilla.com/D210278
2024-05-28 06:53:55 +00:00
serge-sans-paille
a40d3c0d23 Bug 1892043 - Move MOZ_EXPAND_LIBS check to moz.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D207752
2024-05-22 08:22:16 +00:00
serge-sans-paille
6d437ba43e Bug 1895511 - Move MOZ_DEBUGGING_OPTS to moz.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D209734
2024-05-22 06:01:37 +00:00
Mike Hommey
84a3961eba Bug 1897470 - Replace _WIN32_MSVC checks with something more accurate. r=firefox-build-system-reviewers,ahochheiden
The _WIN32_MSVC checks assume the host and target compilers are the
same, which is not the case when cross-compiling for Android.

Differential Revision: https://phabricator.services.mozilla.com/D210976
2024-05-21 19:29:39 +00:00
serge-sans-paille
ae07881baa Bug 1883940 - Replace MOZ_CXX11 autoconf macro by a moz.configure check r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D203781
2024-05-18 07:10:57 +00:00
serge-sans-paille
b19d89343d Bug 1883782 - Move pthread checks from old-configure to moz.configure r=glandium
Get read of -pthreads because (according to gcc info page) it's only
there on solaris and as an alias to -pthread.

-D_REENTRANT is always defined by gcc and clang when -pthreads is on.
-D_THREAD_SAFE is only defined on AIX by clang

so get rid of the related actions.

libpthreads is an AIX thing, I assume we can remove it too.

c/cxx flags are always added to the linker flags, so don't do any
linker-related addition.

Differential Revision: https://phabricator.services.mozilla.com/D203687
2024-05-17 14:38:08 +00:00
serge-sans-paille
a1106cbc85 Bug 1883720 - (re)Move checks for socket, gethostbyname_r and demangle to moz.configure r=glandium
Actually remove the check for demangle, no supported target need that
check.

Also make library dependencies explicit instead of relying on "$LIBS".

Differential Revision: https://phabricator.services.mozilla.com/D203637
2024-05-17 07:35:09 +00:00
serge-sans-paille
2e6000ad33 Bug 1895505 - Move MOZ_NO_DEBUG_RTL check to moz.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D209733
2024-05-17 07:34:32 +00:00
serge-sans-paille
96b04c1115 Bug 1894923 - Remove unused AC_DEFINE(HAVE_UINT64_T) r=glandium
To be clear: the define is used, but everything that uses it defines it locally.

Differential Revision: https://phabricator.services.mozilla.com/D210277
2024-05-17 06:56:55 +00:00
serge-sans-paille
2a5cc8d486 Bug 1894917 - Remove d3d10 header check to moz.configure r=glandium
The header has been in mingw since 2010, and is in the Windows SDK since
well before the version we require.

Differential Revision: https://phabricator.services.mozilla.com/D209377
2024-05-16 08:49:18 +00:00
serge-sans-paille
b9f78f0cc2 Bug 1883615 - Move libdl checks to moz.configure and make libdl dependencies explicit r=glandium
The -ldl flag was previously set globally, it's now set for the libs
that use it.

Also rationalize the difference between HAVE_DLOPEN and HAVE_DLFCN_H.

Differential Revision: https://phabricator.services.mozilla.com/D203594
2024-05-15 20:29:07 +00:00
Tamas Szentpeteri
22c92af506 Backed out 3 changesets (bug 1883720, bug 1883719, bug 1883615) for causing multiple failures. CLOSED TREE
Backed out changeset 495b9e84ba9d (bug 1883720)
Backed out changeset 5a89cbc54dd2 (bug 1883615)
Backed out changeset 9d075e352b0e (bug 1883719)
2024-05-15 13:30:17 +03:00
serge-sans-paille
ceff7deb44 Bug 1883720 - (re)Move checks for socket, gethostbyname_r and demangle to moz.configure r=glandium
Actually remove the check for demangle, no supported target need that
check.

Also make library dependencies explicit instead of relying on "$LIBS".

Differential Revision: https://phabricator.services.mozilla.com/D203637
2024-05-15 07:47:56 +00:00
serge-sans-paille
863475a670 Bug 1883615 - Move libdl checks to moz.configure and make libdl dependencies explicit r=glandium
The -ldl flag was previously set globally, it's now set for the libs
that use it.

Also rationalize the difference between HAVE_DLOPEN and HAVE_DLFCN_H.

Differential Revision: https://phabricator.services.mozilla.com/D203594
2024-05-15 07:47:55 +00:00
Andrew Creskey
6e039d1685 Bug 1894716 - Change Android build to use -O2 optimization level r=firefox-build-system-reviewers,glandium
Optimize android at "-O2" (speed) instead of "-Oz" (reduced code size) because the performance improvements on benchmarks and pageload outweigh the expected increased in binary size.

Differential Revision: https://phabricator.services.mozilla.com/D209967
2024-05-14 15:05:32 +00:00
serge-sans-paille
8507c5b50c Bug 1892005 - Move MOZ_LINUX_32_SSE2_STARTUP_ERROR env check to moz.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D207729
2024-05-03 05:57:52 +00:00
Tamas Szentpeteri
a86fd1fb23 Backed out changeset 4309f75eaa90 (bug 1883615) for causing build bustages related to check_symbol_in_libs. CLOSED TREE 2024-04-17 12:57:02 +03:00
serge-sans-paille
78ac6a6ccf Bug 1883615 - Move libdl checks to moz.configure and make libdl dependencies explicit r=glandium
The -ldl flag was previously set globally, it's now set for the libs
that use it.

Also rationalize the difference between HAVE_DLOPEN and HAVE_DLFCN_H.

Differential Revision: https://phabricator.services.mozilla.com/D203594
2024-04-17 09:33:00 +00:00
serge-sans-paille
0e7846c3b4 Bug 1890509 - Remove AC_EXEEXT check r=glandium
This check is used to set $EXEXT, which is unused, but it also sets
$ac_exeext which is used internally for various tests, including
AC_TRY_LINK.

Interestingly, setting $ac_exeext to a non empty value bypasses the only
portability issue with MinGW that automatically adds a `.exe` suffix if no
extension is given. So Always set `.out` as extension, as it's only used
internally.

Differential Revision: https://phabricator.services.mozilla.com/D207001
2024-04-17 05:38:24 +00:00
serge-sans-paille
ee227d1498 Bug 1884070 - Remove AC_HEADER_DIRENT checks r=glandium
This is defines HAVE_DIRENT_H which is never actually referenced.

Differential Revision: https://phabricator.services.mozilla.com/D203881
2024-03-30 08:40:23 +00:00
serge-sans-paille
09e35b7cbb Bug 1887622 - Remove legacy checks for mode_t, pid_t and off_t r=glandium
mode_t comes from POSIX.1-2008
pid_t comes from POSIX.1-2008
off_t comes from POSIX.1-2008

Differential Revision: https://phabricator.services.mozilla.com/D205569
2024-03-26 14:21:39 +00:00
serge-sans-paille
8836e202c3 Bug 1884634 - Reenable AC_EXEEXT check r=glandium
It seems to be actually relevant for mingw. Re-enabling it restores the
build to its normal state.

Differential Revision: https://phabricator.services.mozilla.com/D204828
2024-03-19 06:43:01 +00:00
serge-sans-paille
416f019769 Bug 1883858 - Remove configure checks that no longer make sense r=glandium
AC_C_CONST is officially useless, see https://www.gnu.org/software/autoconf/manual/autoconf-2.60/html_node/C-Compiler.html
AC_TYPE_SIZE_T is probably as useless, size_t is a standard type in C99 (from stddef.h)
AC_EXEEXT sets EXEEXT which is never used (and the internal ac_cv_exeext which is not used either)
MISSING_X is never referenced

Differential Revision: https://phabricator.services.mozilla.com/D203732
2024-03-11 07:45:03 +00:00
serge-sans-paille
a95cbb8f40 Bug 1882554 - Move check for -Wl,--ignore-unresolved-symbol,environ to python configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D203014
2024-03-04 19:49:01 +00:00
serge-sans-paille
00c979d8c7 Bug 1881499 - Move res_ninit check to moz.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D202421
2024-02-28 11:11:18 +00:00
serge-sans-paille
ac2f2c943a Bug 1880424 - Move clock_monotonic check to moz.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D201942
2024-02-28 11:11:17 +00:00
serge-sans-paille
f3cfc8bfd7 Bug 1880420 - Move __thread detection to moz.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D201937
2024-02-28 11:11:17 +00:00
serge-sans-paille
1142b832db Bug 1880103 - Move dead_strip linker check to moz.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D201724
2024-02-28 11:11:16 +00:00
Mike Hommey
cf08887328 Bug 1880929 - Drop support for VS 2017. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D202188
2024-02-22 00:53:52 +00:00
Mike Hommey
c7fe957839 Bug 679359 - Autodetect WIN32_REDIST_DIR. r=firefox-build-system-reviewers,sergesanspaille,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D202191
2024-02-21 22:18:10 +00:00
Mike Hommey
866c9cfcc3 Bug 1880930 - Remove irrelevant comment from old-configure.in. r=firefox-build-system-reviewers,sergesanspaille
The comment was added in bug 407459, but the code it was relevant to was
moved without the comment in bug 1257448. At the same time, while the
code that came with the comment was moved and is still relevant, the
comment itself refers to code that was removed in bug 1364358.

Differential Revision: https://phabricator.services.mozilla.com/D202189
2024-02-21 22:18:10 +00:00
Mike Hommey
b48fbe1095 Bug 1681445 - Fix CLOCK_MONOTONIC test. r=firefox-build-system-reviewers,sergesanspaille
Bug 1524461 introduced a typo, using __VA_ARGS instead of __VA_ARGS__. A
previous attempt to fix that led to bug 1684265 and the fix has been in
limbo since then. Bug 1876415 however recently changed things so that
mac builds may not use CLOCK_MONOTONIC for TimeStamp, which would avoid
bug 1684265 after fixing the configure test.

Since the first attempt, though, the availability() hack ceased to work.
At the same time, macOS < 10.12 is not supported anymore, so all
supported versions of macOS do have CLOCK_MONOTONIC, so we just remove
the availability() hack altogether.

Differential Revision: https://phabricator.services.mozilla.com/D202187
2024-02-21 22:15:44 +00:00
serge-sans-paille
f3e856c958 Bug 1880048 - Move -pipe check to moz.configure r=glandium
This flag is only meaningful for gcc, take that into account.

Differential Revision: https://phabricator.services.mozilla.com/D201703
2024-02-14 09:24:19 +00:00
serge-sans-paille
e4d4f0003c Bug 1879776 - Move -Wa,--noexecstack check to python configure r=glandium
Provide the minimal support from moz.configure to do so.

The only observable change of this patch is to permute -fPIC and
-Wa,--noexecstack in ASFLAGS.

Differential Revision: https://phabricator.services.mozilla.com/D201349
2024-02-13 10:35:28 +00:00
serge-sans-paille
aa9cfa20f9 Bug 1872748 - Move linker checks from old-configure to configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D199224
2024-02-10 18:28:43 +00:00
serge-sans-paille
c61629d946 Bug 1871386 - Move -Wl,-build-id check from old-configure to moz.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D197069
2024-02-10 18:28:43 +00:00
serge-sans-paille
5088a1419c Bug 1876300 - Introduce linker checks to moz.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D199495
2024-02-10 18:28:42 +00:00
pstanciu
7f73c213d0 Backed out 3 changesets (bug 1876300, bug 1871386, bug 1872748) for causing multiple failures on Linux asan opt. CLOSED TREE
Backed out changeset 5985445bd5c1 (bug 1872748)
Backed out changeset 9cbb0162efb2 (bug 1871386)
Backed out changeset 7c3f969f4730 (bug 1876300)
2024-02-06 13:22:23 +02:00
serge-sans-paille
a0f4fc0125 Bug 1872748 - Move linker checks from old-configure to configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D199224
2024-02-06 09:54:12 +00:00
serge-sans-paille
bf2b4a82a9 Bug 1871386 - Move -Wl,-build-id check from old-configure to moz.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D197069
2024-02-06 09:54:12 +00:00
serge-sans-paille
1b9ef3e953 Bug 1876300 - Introduce linker checks to moz.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D199495
2024-02-06 09:54:11 +00:00
serge-sans-paille
ce3d15a17b Bug 1793001 - s/egrep/grep -E/ r=ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D197508
2024-01-17 14:37:17 +00:00
serge-sans-paille
048b99c827 Bug 1873908 - Do not add -freorder-blocks to MOZ_OPTIMIZE_FLAGS r=glandium
It is already implied by -O2 and -O3, at least since gcc 5, see
https://gcc.gnu.org/onlinedocs/gcc-5.5.0/gcc/Optimize-Options.html#Optimize-Options

Differential Revision: https://phabricator.services.mozilla.com/D198154
2024-01-12 07:38:26 +00:00
Mike Hommey
246fbd8f8d Bug 1359918 - Add -z now linker flags. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D133864
2024-01-09 00:02:41 +00:00
Mike Hommey
619672a8e4 Bug 1867459 - Replace CPU_ARCH with TARGET_CPU. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D195157
2023-12-08 10:43:59 +00:00
Mike Hommey
6c4c88d691 Bug 1854493 - Use -O2 on Linux debug builds. r=firefox-build-system-reviewers,ahochheiden
Linux is the only platform where we have a different optimization level
between normal and debug builds. That comes from bug 1368649, but was
not the original intent: the first landing for that bug actually set the
optimization level to -O2 for all non-PGO Linux builds, but that caused
build problems on the debug builds with the compiler used at the time.

Time has passed, compiler versions have been released, and, in fact,
back then we were still compiling with gcc for the shipped builds.

It's time to go with the original intent.

Differential Revision: https://phabricator.services.mozilla.com/D188896
2023-09-22 02:27:22 +00:00
Masatoshi Kimura
859181dc99 Bug 1849927 - Bump WINVER to 0x0A00. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D186750
2023-09-06 19:30:04 +00:00