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

959 Коммитов

Автор SHA1 Сообщение Дата
serge-sans-paille c956aba4f0 Bug 1892198 - No longer support linkerscript style for moz_expand_libs r=glandium
@file are supported by gcc since gcc 7 and by clang since clang 3.x,
which removes the need for linker script to list input files.

We cannot directly use @file from the compiler driver (it would expand
to a large number of arguments and hit the linker limit) so pass
-Wl,@FILE instead, which is supported since binutils 2.17.

As a side effect this removes the LTO dependency from the check.

Differential Revision: https://phabricator.services.mozilla.com/D207839
2024-04-30 20:51:32 +00:00
Cristian Tuns f1d454ad58 Backed out changeset 390c5748d868 (bug 1892198) for causing Bug 1892493. CLOSED TREE 2024-04-19 15:46:42 -04:00
serge-sans-paille 074aeb56b5 Bug 1892198 - No longer support linkerscript style for moz_expand_libs r=glandium
@file are supported by gcc since gcc 7 and by clang since clang 3.x,
which removes the need for linker script to list input files.

We cannot directly use @file from the compiler driver (it would expand
to a large number of arguments and hit the linker limit) so pass
-Wl,@FILE instead, which is supported since binutils 2.17.

As a side effect this removes the LTO dependency from the check.

Differential Revision: https://phabricator.services.mozilla.com/D207839
2024-04-19 09:31:13 +00:00
Mike Hommey 276a489450 Bug 1888283 - Refresh config.guess and config.sub from upstream. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D205931
2024-03-28 20:58:32 +00:00
serge-sans-paille ec606a05bb Bug 1881545 - Move nl_langinfo and CODESET check from js/src/old-configure.in to js/moz.configure r=glandium
This makes codeset.m4 unused, so also remove it while we're at it.

Differential Revision: https://phabricator.services.mozilla.com/D202450
2024-02-28 11:11:18 +00:00
serge-sans-paille c08a0b3559 Bug 1879183 - Move some asan-specific flags to python configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D201011
2024-02-10 18:28:43 +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 c29e1211c3 Bug 1861365 - Detect statically linking with libstdc++ r=glandium
Do this by scanning for lib(std)c++ in the dynamic section.

Differential Revision: https://phabricator.services.mozilla.com/D194744
2024-01-13 18:00:25 +00:00
Narcis Beleuzu 0e622d6c51 Backed out changeset cc5b886ea3a2 (bug 1861365) for causing build bustages. CLOSED TREE 2024-01-12 11:44:56 +02:00
serge-sans-paille af290d730b Bug 1861365 - Detect statically linking with libstdc++ r=glandium
Do this by scanning for lib(std)c++ in the dynamic section.

Differential Revision: https://phabricator.services.mozilla.com/D194744
2024-01-12 09:22:27 +00:00
serge-sans-paille 1e70dedf6a Bug 1873905 - Fix variable naming for cached configure variable r=glandium
Otherwise the caching doesn't actually happen, see
https://searchfox.org/mozilla-central/rev/6f90f50b7a32cc062ab755e0653b3d3f512fe3bd/build/autoconf/acgeneral.m4#1127

Differential Revision: https://phabricator.services.mozilla.com/D198149
2024-01-12 07:38:40 +00:00
serge-sans-paille 3b336e99e6 Bug 1873495 - Fix variable naming for cached EXPAND_LIBS_LIST_STYLE r=glandium
Cached variable *must* have `_cv_` in their name, per

        https://searchfox.org/mozilla-central/rev/6f90f50b7a32cc062ab755e0653b3d3f512fe3bd/build/autoconf/acgeneral.m4#1127

Differential Revision: https://phabricator.services.mozilla.com/D197945
2024-01-10 14:07:40 +00:00
serge-sans-paille c3147ff86e Bug 1873494 - Cache check for malloc_usable_size argument constness r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D197944
2024-01-10 14:07:40 +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 8f58459578 Bug 1841974 - Work around a rust bug that causes bogus ODR violation detection. r=decoder
Differential Revision: https://phabricator.services.mozilla.com/D182879
2023-07-07 11:02:28 +00:00
Norisz Fay 7e2bbefa0e Backed out 2 changesets (bug 1841974) for causing AddressSanitizer, Assertion failures on shared-libraries-win32.cc CLOSED TREE
Backed out changeset c7218806eb3f (bug 1841974)
Backed out changeset 7da6f26cd035 (bug 1841974)
2023-07-07 01:06:21 +03:00
Mike Hommey 17546b5c29 Bug 1841974 - Work around a rust bug that causes bogus ODR violation detection. r=decoder
Differential Revision: https://phabricator.services.mozilla.com/D182879
2023-07-06 19:10:47 +00:00
Mike Hommey ca2f2016f6 Bug 1837086 - Properly pass -pie when linking. r=firefox-build-system-reviewers,sergesanspaille
There was a syntax error introduced in bug 1796380 that removed the flag
entirely. In practice, it didn't make a difference for us because clang
now defaults to PIE, but it can make a difference in environments where
the compiler is not using such a default.

However, on both Darwin and WASI, clang complains the flag is unused, so
we have to do something about it.

Differential Revision: https://phabricator.services.mozilla.com/D180279
2023-06-08 05:59:21 +00:00
Natalia Csoregi 90fea68f79 Backed out changeset a78960b45007 (bug 1837086) for causing wasi bustage. CLOSED TREE 2023-06-08 02:15:10 +03:00
Mike Hommey b0a2388b98 Bug 1837086 - Fix shell syntax error from bug 1796380. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D180171
2023-06-07 22:08:56 +00:00
Mike Hommey 1ccf25b93b Bug 1796380 - Don't add -pie to LDFLAGS on mac. r=firefox-build-system-reviewers,sergesanspaille
It's the default and clang complains the argument is unused.

Differential Revision: https://phabricator.services.mozilla.com/D178733
2023-05-26 08:53:41 +00:00
Mike Hommey 63148715c6 Bug 1834446 - Move otool detection to python configure. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D178750
2023-05-24 21:27:03 +00:00
Mike Hommey 6bd39b79a5 Bug 1834446 - Move install-name-tool detection to python configure. r=firefox-build-system-reviewers,andi
At the same time, fix the sole use of the tool to actually use what's
found by configure, and only enable that configure check when building
Spidermonkey standalone.

And while we're here, add llvm-install-name-tool to the list.

Differential Revision: https://phabricator.services.mozilla.com/D178749
2023-05-24 21:27:03 +00:00
Mike Hommey 95ed7c89c4 Bug 1834446 - Remove check for lipo. r=firefox-build-system-reviewers,sergesanspaille
Nothing in the build system is using it anymore. It is still used on some
taskcluster tasks, but those are outside the build system.

Differential Revision: https://phabricator.services.mozilla.com/D178748
2023-05-24 21:27:03 +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 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 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
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 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
Mitchell Hentges b48f6cf7dc Bug 1757813: Detect "MSYS" unames as `msyshost`s r=firefox-build-system-reviewers,nalexander
MozillaBuild 3.4's kernel name was `MINGW32_NT-6.2`, but the new
MozillaBuild's kernel name looks like `MSYS_NT-10.0-19044`.

Update existing first-party detection code to properly handle the modern
MSYS "kernel name" format.

Differential Revision: https://phabricator.services.mozilla.com/D140096
2022-03-02 21:01:07 +00:00
Zhao Jiazhong 8ec9867490 Bug 1756570 - Refresh config.guess and config.sub from upstream. r=glandium
Update config.{guess,sub} for LoongArch/Linux build support.

Differential Revision: https://phabricator.services.mozilla.com/D139456
2022-02-25 02:04:13 +00:00
Mike Hommey 41bf6ee9ab Bug 1752072 - Remove check for RANLIB. r=firefox-build-system-reviewers,mhentges
It hasn't been used in the build system since bug 569597.

Differential Revision: https://phabricator.services.mozilla.com/D136987
2022-02-03 00:06:30 +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
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 53aae3cded Bug 1752072 - Remove check for RANLIB. r=firefox-build-system-reviewers,mhentges
It hasn't been used in the build system since bug 569597.

Differential Revision: https://phabricator.services.mozilla.com/D136987
2022-01-27 00:33:46 +00: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 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
Mike Hommey 00fdf5557e Bug 1750893 - Move Android linker flags to python configure. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D136294
2022-01-19 21:32:10 +00:00