Commit Graph

1024 Commits

Author SHA1 Message Date
serge-sans-paille
abf7f0c0e8 Bug 1957023 - Remove references to old-configure invocation r=glandium
This is done in the most failsafe way by making sure that all variables
that where previously set through MOZ_CREATE_CONFIG_STATUS() from
old-configure are still set from init.configure.

Some of them are probably not used by the build system but their removal
is left to another patch, as this excision is already a big change in
itself.

As a side effect, remove all m4-related configuration and usage.

Differential Revision: https://phabricator.services.mozilla.com/D243457
2025-04-25 09:33:45 +00:00
Alexandru Marc
be13b77878 Backed out changeset c6bf16ef15dc (bug 1957023) by developer request a=backout 2025-04-23 12:02:27 +03:00
serge-sans-paille
7fdcb7d5db Bug 1957023 - Remove references to old-configure invocation r=glandium
This is done in the most failsafe way by making sure that all variables
that where previously set through MOZ_CREATE_CONFIG_STATUS() from
old-configure are still set from init.configure.

Some of them are probably not used by the build system but their removal
is left to another patch, as this excision is already a big change in
itself.

As a side effect, remove all m4-related configuration and usage.

This impacts all mozconfig files that used to just set a variable to be
passed to the configuration step, instead of exporting them. As this
method was relying on old-configure, we now require to export the
variables to be passed to the configure step, the others are ignored
(but can still be used as local variables).

Differential Revision: https://phabricator.services.mozilla.com/D243457
2025-04-18 13:24:12 +00:00
Butkovits Atila
3dc549002a Backed out changeset 8c45a3ebe23c (bug 1957023) for causing bustages complaining about MOZ_NO_PIE_COMPAT. CLOSED TREE 2025-04-17 22:42:08 +03:00
serge-sans-paille
9726b3fc32 Bug 1957023 - Remove references to old-configure invocation r=glandium
This is done in the most failsafe way by making sure that all variables
that where previously set through MOZ_CREATE_CONFIG_STATUS() from
old-configure are still set from init.configure.

Some of them are probably not used by the build system but their removal
is left to another patch, as this excision is already a big change in
itself.

As a side effect, remove all m4-related configuration and usage.

Differential Revision: https://phabricator.services.mozilla.com/D243457
2025-04-17 14:45:00 +00:00
Mike Hommey
1ca5b6bcd2 Bug 1932296 - Refresh config.guess and config.sub from upstream. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D229574
2024-11-21 06:22:48 +00:00
serge-sans-paille
89cb86b973 Bug 1907030 - Move some old_configure options to moz.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D216160
2024-08-15 23:27:17 +00:00
serge-sans-paille
bf675f7b84 Bug 1907067 - Remove AC_PROG_CC, AC_PROG_CXX and MOZ_CROSS_COMPILER from old-configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D216164
2024-08-15 09:39:59 +00:00
serge-sans-paille
fe181d29fe Bug 1882553 - Move clang plugin flag computation to python.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D203015
2024-08-01 15:12:50 +00:00
Iulian Moraru
6925c01560 Backed out 2 changesets (bug 1906804, bug 1882553) for causing artifact build bustages. CLOSED TREE
Backed out changeset 47260bf5693c (bug 1882553)
Backed out changeset 16b093f86271 (bug 1906804)
2024-07-24 10:07:42 +03:00
serge-sans-paille
e16ebe4b87 Bug 1882553 - Move clang plugin flag computation to python.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D203015
2024-07-24 05:35:34 +00:00
Cristina Horotan
737fe5c28e Backed out 2 changesets (bug 1906804, bug 1882553) for causing build bustages
Backed out changeset 1c8040b6090f (bug 1882553)
Backed out changeset f9fc828b8987 (bug 1906804)
2024-07-23 09:49:15 +03:00
serge-sans-paille
df4c924796 Bug 1882553 - Move clang plugin flag computation to python.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D203015
2024-07-23 05:47:55 +00:00
serge-sans-paille
d6309a4a00 Bug 1905600 - begin migration of CFLAGS, CXXFLAGS and LDFLAGS from old-configure to moz.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D215378
2024-07-17 23:45:25 +00:00
serge-sans-paille
ef7ab0e622 Bug 1905592 - Move ASFLAGS from old-configure to moz.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D215374
2024-07-03 19:50:06 +00:00
serge-sans-paille
b610a85614 Bug 1905373 - Do not attempt to use confdefs.pytmp if it wasn't created r=glandium
If no AC_DEFINE are used, then confdefs.pytmp is never created, which
leads to bug 1905373.

This bug is a good sign, it means we're no longer using a lot of
autoconf stuff!

Differential Revision: https://phabricator.services.mozilla.com/D215240
2024-07-02 06:41:25 +00:00
serge-sans-paille
d0374497a5 Bug 1903036 - Move check for libstdc++ static linkage from old-configure to moz.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D213953
2024-06-28 13:59:02 +00:00
Norisz Fay
d4aaf99dfe Backed out 2 changesets (bug 1903036, bug 1903232) for causing build bustages CLOSED TREE
Backed out changeset bcc27418c8b8 (bug 1903232)
Backed out changeset 494b29d3ea18 (bug 1903036)
2024-06-28 14:35:31 +03:00
serge-sans-paille
bfc563056f Bug 1903036 - Move check for libstdc++ static linkage from old-configure to moz.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D213953
2024-06-28 11:16:39 +00:00
serge-sans-paille
3b53894870 Bug 1904789 - Move MOZ_PROGRAM_LDFLAGS from old-configure to moz.configure r=glandium
As a side effect, remove obsolete __ELF__ check on netbsd.

Differential Revision: https://phabricator.services.mozilla.com/D214934
2024-06-28 10:23:49 +00:00
serge-sans-paille
96f8b0c331 Bug 1899708 - Move DSO_LDOPTS old-configure references to moz.configure r=glandium
As a side effect, syndicate --enable-profile-generate option handling.

Differential Revision: https://phabricator.services.mozilla.com/D212121
2024-06-25 07:04:39 +00:00
serge-sans-paille
8ad9db8395 Bug 1903070 - Remove unused mozprog.m4 and mozheader.m4 r=glandium
Last use of MOZ_PATH_PROG got removed by bug 1896414, and last use of
MOZ_CHECK_HEADER got removed in bug 1894951.

Differential Revision: https://phabricator.services.mozilla.com/D213986
2024-06-19 09:00:55 +00:00
serge-sans-paille
7b248624f3 Bug 1896414 - Move MOZ_ASAN checks from old.configure to moz.configure r=glandium,geckoview-reviewers,m_kato
Also improve detection of runtime libraries as a side effect.

Differential Revision: https://phabricator.services.mozilla.com/D210196
2024-06-18 14:44:40 +00:00
serge-sans-paille
5d803240c7 Bug 1900540 - No longer require -fno-sanitize-address-globals-dead-stripping r=glandium
The related bug was fixed in rustc 1.74, and we require 1.76.

This impacts the buildid section which gets modified by asan, so we
exclude it from the asan process through an attribute.

Differential Revision: https://phabricator.services.mozilla.com/D212532
2024-06-18 06:49:32 +00:00
Mike Hommey
f7daacd8de Bug 1902214 - Don't try to convert arguments from /ARG form to -ARG form. r=firefox-build-system-reviewers,sergesanspaille
Back when this was done, we had some trouble with make calling commands
through the shell instead of via CreateProcess on Windows, which made
the intermediate shell replace /ARG with c:\path\to\msys\ARG paths,
which didn't end up well.

This however doesn't happen anymore, so we can get rid of the hack.

That leaves us with only the backslash problem, but because it's a windows
problem, rather than being related to the compiler being clang-cl, we also
fix the condition under which we make the switch to forward slashes.

Differential Revision: https://phabricator.services.mozilla.com/D213538
2024-06-14 01:59:05 +00:00
Mike Hommey
27c73fdcf3 Bug 1902214 - Use -std:c++17 on clang-cl builds. r=firefox-build-system-reviewers,sergesanspaille
For some reason, we ended up using -Xclang -std=c++17, when we could
just have used -std:c++17, which simplifies things.

Differential Revision: https://phabricator.services.mozilla.com/D213537
2024-06-14 01:59:05 +00:00
Mike Hommey
756ec00fc9 Bug 1902214 - Move clang library linkage to moz.build. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D213536
2024-06-14 01:59:04 +00:00
Mike Hommey
9b53e3ed17 Bug 1902214 - Move -flat_namespace and -undefined suppress flags out of configure. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D213535
2024-06-14 01:59:04 +00:00
Mike Hommey
82f815ae02 Bug 1902214 - Stop filtering out -isysroot and -gcc-toolchain. r=firefox-build-system-reviewers,sergesanspaille
-isysroot was appearing in the llvm-config output on mac in very old
clang.llvm.org builds. The latest builds don't do that anymore, and our
own bootstrapped builds don't either.

-gcc-toolchain was filtered out because we were using it to build our
own clang and that transpired in llvm-config, but we don't anymore, as
of bug 1719226.

Differential Revision: https://phabricator.services.mozilla.com/D213534
2024-06-14 01:59:04 +00:00
Mike Hommey
ffb120f561 Bug 1902214 - Don't filter-out /path/to/clang/lib from LDFLAGS on mac. r=firefox-build-system-reviewers,sergesanspaille
We did that to avoid linking against clang's libc++, but that hasn't
been necessary since we removed it in bug 1788870.

Differential Revision: https://phabricator.services.mozilla.com/D213533
2024-06-14 01:59:03 +00:00
Tamas Szentpeteri
392538e97f Backed out changeset c2a2934db74e (bug 1900540) for causing Bp bustage related to buildid.cpp. CLOSED TREE. 2024-06-14 02:33:42 +03:00
serge-sans-paille
11421ab58f Bug 1900540 - No longer require -fno-sanitize-address-globals-dead-stripping r=glandium
The related bug was fixed in rustc 1.74, and we require 1.76.

This impacts the buildid section which gets modified by asan, so we
exclude it from the asan process through an attribute.

Differential Revision: https://phabricator.services.mozilla.com/D212532
2024-06-13 15:57:07 +00:00
pstanciu
2050520cf5 Backed out changeset b2750ac1632c (bug 1900540) for causing build bustages CLOSED TREE 2024-06-13 16:49:09 +03:00
serge-sans-paille
ced151afb3 Bug 1900540 - No longer require -fno-sanitize-address-globals-dead-stripping r=glandium
The related bug was fixed in rustc 1.74, and we require 1.76.

This impacts the buildid section which gets modified by asan, so we
exclude it from the asan process through an attribute.

Differential Revision: https://phabricator.services.mozilla.com/D212532
2024-06-13 12:13:04 +00:00
Iulian Moraru
3db478ec8a Backed out changeset 6bdd08a7b8af (bug 1900540) for causing Gtest failures. CLOSED TREE 2024-06-12 07:28:37 +03:00
serge-sans-paille
d806a514ce Bug 1900540 - No longer require -fno-sanitize-address-globals-dead-stripping r=glandium
The related bug was fixed in rustc 1.74, and we require 1.76.

Differential Revision: https://phabricator.services.mozilla.com/D212532
2024-06-11 21:23:21 +00:00
Iulian Moraru
9f148e6bab Backed out 3 changesets (bug 1900540, bug 1896414) for causing Gtest failures.
Backed out changeset b1e69d42bb91 (bug 1896414)
Backed out changeset 2740e0cb1ac8 (bug 1896414)
Backed out changeset 073d686a1233 (bug 1900540)
2024-06-11 22:40:58 +03:00
serge-sans-paille
8d9310f182 Bug 1896414 - Move MOZ_ASAN checks from old.configure to moz.configure r=glandium
Also improve detection of runtime libraries as a side effect.

Differential Revision: https://phabricator.services.mozilla.com/D210196
2024-06-11 06:38:28 +00:00
serge-sans-paille
b7852164c6 Bug 1900540 - No longer require -fno-sanitize-address-globals-dead-stripping r=glandium
The related bug was fixed in rustc 1.74, and we require 1.76.

Differential Revision: https://phabricator.services.mozilla.com/D212532
2024-06-11 06:38:28 +00:00
serge-sans-paille
68b573d544 Bug 1896116 - Move icf check code to moz.configure r=glandium
While we're at it, also make it possible to activate icf in
developer mode, while not changing the default.

Also remove mentions to LD_PRINT_ICF_SECTIONS as it was never
referenced.

Differential Revision: https://phabricator.services.mozilla.com/D210037
2024-06-10 13:09:50 +00:00
serge-sans-paille
27290ec69f 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
54ba443306 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
798040a092 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
2f9b492007 Bug 1896413 - Move LIBFUZZER checks from old.configure to moz.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D210195
2024-05-31 06:02:54 +00:00
serge-sans-paille
eeaa5d3080 Bug 1896412 - Move MOZ_UBSAN integer overflow checks from old.configure to moz.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D210194
2024-05-31 06:02:54 +00:00
serge-sans-paille
0e3362c608 Bug 1896411 - Move MOZ_UBSAN checks from old.configure to moz.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D210193
2024-05-31 06:02:53 +00:00
serge-sans-paille
97b42c2066 Bug 1896410 - Move MOZ_MSAN checks from old.configure to moz.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D210192
2024-05-31 06:02:53 +00:00
serge-sans-paille
a1e974f602 Bug 1896409 - Move MOZ_TSAN checks from old.configure to moz.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D210191
2024-05-31 06:02:53 +00:00
serge-sans-paille
e361ae97ea Bug 1896118 - Rework identical code folding detection check r=glandium
For lld, -Wl,--icf=safe checks for address significance, which seems to
be the case with the previous test. Not referencing the function in
main() fixes the issue.

This behavior differs between lld and gold, see
https://github.com/llvm/llvm-project/issues/93818

Differential Revision: https://phabricator.services.mozilla.com/D210035
2024-05-30 14:13:33 +00:00
serge-sans-paille
3ac3f93031 Bug 1896351 - Move sanitizer-related AC_SUBST and AC_DEFINE from old-configure to moz.configure r=glandium
Also:

- deactivate LLVM_SYMBOLIZER on android mozconfig as we don't cross compile it yet.
- enforce LLVM_SYMBOLIZER when fuzzing is on
- fix osx packaging to include llvm-symbolizer when fuzzing, and provide
  it through tc

Differential Revision: https://phabricator.services.mozilla.com/D210190
2024-05-29 15:28:59 +00:00