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

379 Коммитов

Автор SHA1 Сообщение Дата
Eric Rahm 2016216d6f Bug 1544418 - Backed out changeset 3d0236f985f8. r=mshal
Backout update that broke OSX 10.13 builds.

Differential Revision: https://phabricator.services.mozilla.com/D27764

--HG--
extra : moz-landing-system : lando
2019-04-16 18:00:57 +00:00
Mike Shal 63403bb0df Bug 1522931 - always check the OSX SDK version; r=firefox-build-system-reviewers,chmanchester
Bug 1500504 added a version check for the SDK, but it only does the
check if --with-macos-sdk is used. We should also check the version when
using the default SDK.

Note that this means we now set MACOS_SDK_DIR to be the default SDK even
if it wasn't set explicitly from --with-macos-sdk

Differential Revision: https://phabricator.services.mozilla.com/D17727

--HG--
extra : moz-landing-system : lando
2019-04-12 19:00:13 +00:00
Csoregi Natalia efc3a9c990 Backed out 2 changesets (bug 1522931) for breaking macOS build on 10.14. a=backout
Backed out changeset 27214432fe48 (bug 1522931)
Backed out changeset 71191e5499a1 (bug 1522931)
2019-04-10 17:10:12 +03:00
Mike Shal 3af5e94461 Bug 1522931 - always check the OSX SDK version; r=firefox-build-system-reviewers,chmanchester
Bug 1500504 added a version check for the SDK, but it only does the
check if --with-macos-sdk is used. We should also check the version when
using the default SDK.

Note that this means we now set MACOS_SDK_DIR to be the default SDK even
if it wasn't set explicitly from --with-macos-sdk

Differential Revision: https://phabricator.services.mozilla.com/D17727

--HG--
extra : moz-landing-system : lando
2019-04-09 20:38:51 +00:00
Gurzau Raul d57d523481 Backed out changeset 70ce7207292e (bug 1490743) for increasing build times on Windows platforms. a=backout 2019-03-26 09:06:35 +02:00
Mike Hommey 7e282558ea Bug 1524429 - Move build/autoconf/arch.m4 to python configure. r=nalexander
The file is essentially limited to ARM flag tweaks, so we make the
corresponding python configure code ARM-only. In large parts, the
python code sets things up similarly, although in a few places we try to
be smarter about than the current autoconf-based code.

The resulting config.status have been verified to only have
insignificant differences on both arm and aarch64 android builds.

Depends on D24000

Differential Revision: https://phabricator.services.mozilla.com/D24001

--HG--
extra : moz-landing-system : lando
2019-03-20 16:17:57 +00:00
David Major ebab8a4fb6 Bug 1490743 - Work around missing type information in Windows debug symbols r=chmanchester
See https://bugs.llvm.org/show_bug.cgi?id=38944. clang thought it could safely leave out type information for some of our classes, but that information would have been helpful for debugging. The flag in this patch turns off the debug-info limiting.

Differential Revision: https://phabricator.services.mozilla.com/D24073

--HG--
extra : moz-landing-system : lando
2019-03-20 15:04:41 +00:00
Andreea Pavel f7b09c8773 Backed out 2 changesets (bug 1524429) for build bustages at lint.py on a CLOSED TREE
Backed out changeset 7947b90f1580 (bug 1524429)
Backed out changeset 1a5a5aef01d5 (bug 1524429)
2019-03-20 02:16:41 +02:00
Mike Hommey 80f7e86b2e Bug 1524429 - Move build/autoconf/arch.m4 to python configure. r=nalexander
The file is essentially limited to ARM flag tweaks, so we make the
corresponding python configure code ARM-only. In large parts, the
python code sets things up similarly, although in a few places we try to
be smarter about than the current autoconf-based code.

The resulting config.status have been verified to only have
insignificant differences on both arm and aarch64 android builds.

Depends on D24000

Differential Revision: https://phabricator.services.mozilla.com/D24001

--HG--
extra : moz-landing-system : lando
2019-03-19 22:32:58 +00:00
Gian-Carlo Pascutto e0391761b8 Bug 1533133 - Fix missing linker and JS engine options for SSP. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D22730

--HG--
extra : moz-landing-system : lando
2019-03-15 08:46:27 +00:00
Nathan Froyd 6d4137ff36 Bug 1534159 - remove exceptions for Android and Darwin from libstdcxx checks; r=glandium
The only place we'd need the compat libraries would be for host
binaries, and those shouldn't be a problem given that our system images
are new enough.

Differential Revision: https://phabricator.services.mozilla.com/D22873

--HG--
extra : moz-landing-system : lando
2019-03-13 22:24:20 +00:00
Thomas Daede b63aba5124 Bug 1521186 - Download nasm toolchain on Windows and Linux. r=firefox-build-system-reviewers,mshal
Differential Revision: https://phabricator.services.mozilla.com/D22798

--HG--
extra : moz-landing-system : lando
2019-03-11 18:00:13 +00:00
Nathan Froyd 2f1020dc41 Bug 1533149 - add checking messages for libstdcxx_version; r=glandium
It's occasionally useful to know what versions are being discovered for
these variables.  It's also convenient for logs from automation to
contain all the relevant information, rather than setting up a loaner
and running all the commands yourself.

Differential Revision: https://phabricator.services.mozilla.com/D22385

--HG--
extra : moz-landing-system : lando
2019-03-10 00:11:09 +00:00
Mike Hommey d876d02d9a Bug 1530908 - Use an environment variable to enable LTO on automation. r=chmanchester
This allows to disable it more easily for artifact builds.

Differential Revision: https://phabricator.services.mozilla.com/D21311

--HG--
extra : moz-landing-system : lando
2019-03-06 22:47:08 +00:00
Ted Mielczarek 0539de896a bug 1481614 - detect icecream usage in build telemetry. r=chmanchester,glandium
This patch adds detection for when icecream is in use to build telemetry.
icecream is commonly enabled in two ways: by either setting CC/CXX to point
to icecream's cc/c++ symlinks, or by setting adding
mk_add_options 'export CCACHE_PREFIX=icecc' to a mozconfig when also using
ccache. For the former, this patch adds a simple configure check to see
if CXX is a symlink to a file named 'icecc'. For the latter this patch adds
CCACHE_PREFIX as a configure subst to capture the value.

We don't currently have a facility for writing telemetry tests that depend on
configure values. Local manual testing shows that it does work as expected.

Differential Revision: https://phabricator.services.mozilla.com/D18138

--HG--
extra : moz-landing-system : lando
2019-02-25 19:06:27 +00:00
Bogdan Tara 67efae6a76 Backed out changeset b8c7842e8b1a (bug 1512806) for Windows 2012 bustages complaning about gen_cflags CLOSED TREE 2019-02-22 05:10:46 +02:00
Mike Shal bb3ac7fa72 Bug 1512806 - Pass correct profile flags for Android PGO; r=firefox-build-system-reviewers,chmanchester
Android requires us to use -fprofile-generate / -fprofile-use instead of
-fprofile-instr-generate / -fprofile-instr-use. Additionally, we have
to pass in the path to write out the profile data as /data/local/tmp,
since the cwd from where the Fennec process is invoked is not writeable.

Differential Revision: https://phabricator.services.mozilla.com/D20697

--HG--
extra : moz-landing-system : lando
2019-02-21 19:00:51 +00:00
Marco Castelluccio 19bbc158b4 Bug 1491004 - Exclude Visual Studio files from coverage instrumentation. r=chmanchester,calixte,glandium
Differential Revision: https://phabricator.services.mozilla.com/D18511

--HG--
extra : moz-landing-system : lando
2019-02-20 12:18:56 +00:00
Marco Castelluccio 2dffc6b8bf Bug 1491004 - Set CFLAGS and CXXFLAGS in toolchain.configure for coverage builds. r=chmanchester
Differential Revision: https://phabricator.services.mozilla.com/D18510

--HG--
extra : moz-landing-system : lando
2019-02-20 12:18:32 +00:00
Mike Hommey ef3ad686ee Bug 1512504 - Remove support for MSVC. r=froydnj
Consequently, this removes:
- MOZ_LIBPRIO, which is now always enabled.
- non_msvc_compiler, which is now always true.
- The cl.py wrapper, since it's not used anymore.
- CL_INCLUDES_PREFIX, which was only used for the cl.py wrapper.
- NONASCII, which was only there to ensure CL_INCLUDES_PREFIX still
  worked in non-ASCII cases.

This however keeps a large part of detecting and configuring for MSVC,
because we still do need it for at least headers, libraries, and midl.

Depends on D19614

Differential Revision: https://phabricator.services.mozilla.com/D19615

--HG--
extra : moz-landing-system : lando
2019-02-14 21:45:27 +00:00
David Major 004144fdf9 Bug 1525957 - Bump clang-cl to 8.0.0rc2 r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D19003

--HG--
extra : moz-landing-system : lando
2019-02-08 09:03:30 +00:00
Mike Hommey 015ffd1905 Bug 1526062 - Add missing imports for Exception. r=nalexander
Depends on D19109

Differential Revision: https://phabricator.services.mozilla.com/D19110

--HG--
extra : moz-landing-system : lando
2019-02-08 16:56:40 +00:00
Mike Hommey 33a69b7eea Bug 1524467 - Use -m32/-m64 in more cases. r=froydnj
In upcoming changes, we're going to use the normal compiler flags for
bindgen instead of having a separate logic for essentially the same
flags (and there's not much reason not to use the same flags after all).

One hiccup, though is that for some reason, --target=i686-linux-gnu
doesn't work with bindgen while it works with clang in the same setup.
But -m32 does.

Considering -m32 and -m64 are standard flags and that we're using them
in many cases, it doesn't hurt to use them instead of --target with
clang.

While we're doing that, we might as well refactor a little to avoid the
multiple branches handling the use of -m32/-m64, and fix the theoretical
compile-x86_64-with-x86-clang-cl case, as well as the weird check for
aarch64.

And because only two cases actually require -Xclang, only one of which
requires a condition, and the control flow is not too complex to avoid
flag duplication, we just remove the append_flag function; it was too
confusing, with all the cases we skipped it when -Xclang was not wanted.

Differential Revision: https://phabricator.services.mozilla.com/D18316

--HG--
extra : moz-landing-system : lando
2019-02-04 17:22:58 +00:00
Tom Ritter b06907665c Bug 1525588 - Do not enable CFG on ARM builds, as it causes undiagnosed failures. r=dmajor
--HG--
extra : rebase_source : c305609f0d5a08958e9901b2b02867ea7fa200c7
2019-02-06 11:42:24 -06:00
Mike Hommey bdaa5d90e4 Bug 1522609 - Pass compilers and flags down to cargo on sanitizer/fuzzying/ccov builds. r=ted
Depends on D18280

Differential Revision: https://phabricator.services.mozilla.com/D18281

--HG--
extra : moz-landing-system : lando
2019-02-06 03:05:52 +00:00
Tom Ritter aa8edade61 Bug 1485016 - Change clang-cl compiler version to be the clang version rather than MSVC r=glandium
This only affects the compiler version in the build system; not the
version reported by the compiler.

--HG--
extra : histedit_source : 37fc1a2090d872ca5e95d022e9f93b620b2d8dbb
2019-01-29 06:42:53 -06:00
Tom Ritter e31de5943e Bug 1485016 - Enable CFG for Windows builds r=dmajor
--HG--
extra : histedit_source : 6b22c5f55f7e5f132a82318de5df0ce2206328e2
2019-01-25 10:41:27 -06:00
Ted Mielczarek 8a4288a193 bug 1506848 - switch Windows debug flags from -Zi to -Z7. r=nalexander
We default to -Zi for Windows debug flags, which is for generating debug info
into a PDB file, but clang-cl doesn't actually implement that so -Zi is
an alias for -Z7 in clang-cl:
http://clang.llvm.org/docs/UsersManual.html#id9

sccache has special handling for -Zi because multiple compiles writing
to the same PDB file is not cacheable, so we've always overridden -Zi with -Z7
in CI when using sccache.

Given that everyone should be using clang-cl nowadays and MSVC will no longer
be supported soon, this patch changes the default and removes some PDB
file name flag setting from rules.mk, as well as the no-longer-necessary
overrides from mozconfig.cache.

Differential Revision: https://phabricator.services.mozilla.com/D18264

--HG--
extra : moz-landing-system : lando
2019-02-01 11:12:06 +00:00
Mike Hommey 0936da9a4a Bug 1523851 - Make ac_cv_prog_*_works act as a cache. r=froydnj
Depends on D18057

Differential Revision: https://phabricator.services.mozilla.com/D18058

--HG--
extra : moz-landing-system : lando
2019-01-31 02:11:50 +00:00
Mike Hommey 21c3b16892 Bug 1523851 - Remove AC_PROG_GCC_TRADITIONAL test. r=froydnj
While not related, it turns out this test was opted in by ourselves,
while it's practically useless. Recent autoconf documentation says it's
obsolescent, and even autoconf 2.13 documentation said with "recent
versions of the GNU C compiler", the issue it's detecting "is becoming
a less prevalent problem". Recent as of 20 years ago.

Differential Revision: https://phabricator.services.mozilla.com/D18054

--HG--
extra : moz-landing-system : lando
2019-01-30 14:39:01 +00:00
Tom Ritter 55eb3434be Bug 1523003 - Remove the force-ms-compatibility for clang-cl r=glandium 2019-01-27 17:19:57 -06:00
Mike Hommey de5dfda48c Bug 1520232 - Preset some of the autoconf config.cache values from python configure. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D17914

--HG--
extra : moz-landing-system : lando
2019-01-29 14:17:29 +00:00
Mike Hommey ba16bbdf4f Bug 1523200 - Use the x86 MSVC when the configure host is x86. r=froydnj
Previously, we hardcoded HostX64 because configure would autodetect a
x86 host on x64 machines, but the x86 MSVC compiler wouldn't be
suitable.

While the x86 MSVC compiler might still not be suitable, now that
configure detects x64 hosts properly, when the configure host is
detected as x86, we can't even execute the x64 compiler, so we can at
least try with the x86 one correctly.

Differential Revision: https://phabricator.services.mozilla.com/D17788

--HG--
extra : moz-landing-system : lando
2019-01-28 22:24:04 +00:00
Mike Hommey 12e0f305f3 Bug 1523198 - Make VC_PATH a normal configure input. r=froydnj
And use it as an alternative to vswhere, instead of the current late
check. This allows to use VC_PATH when using a MSVC archive that is not
installed through the VS installer, and not have to care about PATH.

Depends on D17786

Differential Revision: https://phabricator.services.mozilla.com/D17787

--HG--
extra : moz-landing-system : lando
2019-01-28 20:44:26 +00:00
Mike Hommey 85670de72d Bug 1523198 - Refactor vc_compiler_path. r=froydnj
- Only expose it as well as --with-visual-studio-version when the host
  system is Windows.
- Don't run vswhere twice (once for host and once for target).

Depends on D17785

Differential Revision: https://phabricator.services.mozilla.com/D17786

--HG--
extra : moz-landing-system : lando
2019-01-28 20:42:07 +00:00
Mike Hommey 26df61d9d6 Bug 1522560 - Use system vswhere.exe. r=dmajor
And remove the in-tree one.

Differential Revision: https://phabricator.services.mozilla.com/D17773

--HG--
extra : moz-landing-system : lando
2019-01-28 21:54:56 +00:00
Mike Hommey 38189d89a7 Bug 1523146 - Remove checks for MSVC < 2017. r=dmajor
We reject MSVC compilers < 2017 already, there's no point checking for
smaller versions after that.

Differential Revision: https://phabricator.services.mozilla.com/D17770

--HG--
extra : moz-landing-system : lando
2019-01-28 03:30:03 +00:00
David Major 820c1361b4 Bug 1512822 - Use clang-cl rather than MSVC for aarch64 builds r=chmanchester
Differential Revision: https://phabricator.services.mozilla.com/D17021

--HG--
extra : moz-landing-system : lando
2019-01-24 15:08:50 +00:00
David Major 90b4b511f2 Bug 1521129 - Bump clang-cl to 8.0.0 rc1 r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D17009

--HG--
rename : build/build-clang/r342652-unpoison-thread-stacks.patch => build/build-clang/unpoison-thread-stacks.patch
extra : moz-landing-system : lando
2019-01-24 15:03:52 +00:00
Mike Hommey 3567be6105 Bug 1521691 - Move the remains of CC_VERSION to python configure. r=chmanchester
which, at this point, is only the AC_SUBST, so we don't even need to
give it to old-configure anymore.

Depends on D17207

Differential Revision: https://phabricator.services.mozilla.com/D17208

--HG--
extra : moz-landing-system : lando
2019-01-23 00:27:38 +00:00
shindli 2aae270ee0 Backed out 2 changesets (bug 1521691) for bustages in clang-plugin.dll CLOSED TREE
Backed out changeset 09e1109d2350 (bug 1521691)
Backed out changeset cfee3de00f12 (bug 1521691)
2019-01-23 00:51:59 +02:00
Mike Hommey f2798e8385 Bug 1521691 - Move the remains of CC_VERSION to python configure. r=chmanchester
which, at this point, is only the AC_SUBST, so we don't even need to
give it to old-configure anymore.

Depends on D17207

Differential Revision: https://phabricator.services.mozilla.com/D17208

--HG--
extra : moz-landing-system : lando
2019-01-22 22:26:28 +00:00
Tom Ritter 3a99ace175 Bug 1520308 - Enable ASLR for mingw-clang builds. r=froydnj 2019-01-14 18:49:23 -06:00
Mike Hommey e7713397bc Bug 1520402 - Require the android NDK when targetting Android, not when building Fennec. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D16671

--HG--
extra : moz-landing-system : lando
2019-01-17 04:14:50 +00:00
Mike Hommey 19f8d4666d Bug 1520677 - Remove unnecessary --help dependencies in python configure. r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D16777

--HG--
extra : moz-landing-system : lando
2019-01-17 03:34:54 +00:00
Cosmin Sabou 18aa3b4cff Backed out changeset bc6c2b781953 (bug 1520402) for Linux build bustages on test_toolchain_configure. CLOSED TREE 2019-01-17 02:06:08 +02:00
Mike Hommey 3ea720d026 Bug 1520402 - Require the android NDK when targetting Android, not when building Fennec. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D16671

--HG--
extra : moz-landing-system : lando
2019-01-16 23:26:51 +00:00
Mike Hommey 9f9340299c Bug 1257904 - Remove YASM_MAJOR_VERSION/YASM_MINOR_VERSION. r=firefox-build-system-reviewers,mshal
They are entirely unused now.

Differential Revision: https://phabricator.services.mozilla.com/D16158

--HG--
extra : moz-landing-system : lando
2019-01-10 16:23:19 +00:00
Mike Hommey 3ad65a7f86 Bug 1519319 - Use toolchain_search_path to look for rust toolchains. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D16292

--HG--
extra : moz-landing-system : lando
2019-01-11 15:48:20 +00:00
Mike Shal 9866beb54f Bug 1500504 - Add version checks for the OSX SDK; r=froydnj#firefox-build-system-reviewers
In bug 1494022 there are problems using an SDK that is too new, which
can cause developers to spend many hours debugging an issue that we
could've checked up front.

This patch gets the version from the SDKSettings.plist file at the root
of the SDK directory, and checks it against min and max supported
versions.

The current min version is 10.11, since that is what we build with in
automation. The current max version is 10.13, since 10.14+ currently has
an issue with a black screen at startup.

Differential Revision: https://phabricator.services.mozilla.com/D16140

--HG--
extra : moz-landing-system : lando
2019-01-11 19:59:23 +00:00