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

424 Коммитов

Автор SHA1 Сообщение Дата
Mike Hommey d4a59a2d9d Bug 1368649 - Default to -O2 when building on Linux without PGO. r=gps
-Os generates smaller code, at the expense of performance. On desktop,
this tradeoff is not necessarily the best, especially when considering
the vast performance difference. Most downstream redistributors also
don't do PGO and don't override defaults, so they would tend to ship
slower builds as a consequence.

We however keep -Os as default for debug builds for now, because -O2
triggers -Werror=strict-overflow failures somehow.

--HG--
extra : rebase_source : ad2f4fedb7934b6b23b84412c86b30d29a8fb5f8
2017-05-31 06:19:38 +09:00
Wes Kocher 622c5de8c6 Backed out changeset d956ff86aaa6 (bug 1368649) for wError bustage on linux builds a=backout
MozReview-Commit-ID: DObINDiBa0F
2017-06-01 18:14:02 -07:00
Mike Hommey a9c8986f6c Bug 1368649 - Default to -O2 when building on Linux without PGO. r=gps
-Os generates smaller code, at the expense of performance. On desktop,
this tradeoff is not necessarily the best, especially when considering
the vast performance difference. Most downstream redistributors also
don't do PGO and don't override defaults, so they would tend to ship
slower builds as a consequence.

--HG--
extra : rebase_source : 7d66393d03b9424fdcc46874a09239ffe46cfb33
2017-05-31 06:19:38 +09:00
Nomis101 a6af209681 Bug 1359915 - Enable compile-time warnings for security-sensitive patterns. r=froydnj 2017-06-01 00:25:03 +02:00
Andreas Tolfsen e721ebada1 Bug 1368035 - Enable geckodriver building in automation; r=ted
geckodriver compilation was disabled by default in
https://bugzilla.mozilla.org/show_bug.cgi?id=1368084 due to issues
building it locally on Windows.

This re-enables building of geckodriver in automation, but gives
developers an option, --enable-geckodriver, to opt-in to building
it locally.

geckodriver is implied on supported platforms when MOZ_AUTOMATION is
set, but we also provide the option for developers to use.  This means
geckodriver will be built in CI by default, but not in developers'
local environments.

MozReview-Commit-ID: ACkO97ekVsi

--HG--
extra : rebase_source : 067e25911f72d80a54e662f24cc71dedde53a4e1
2017-05-27 18:51:40 +01:00
Nick Alexander 518efc8674 Bug 1365089 - Pre: Support setting default keyfile locations in moz.configure. r=nalexander
MozReview-Commit-ID: 207kgPU2TPM

--HG--
extra : rebase_source : 92d30da1d4956b159335536a46a26610a40e632b
2017-05-19 11:30:26 -07:00
Andreas Tolfsen e3554fa5ae Bug 1340637 - Skip geckodriver in hazard builds; r=ted
One of the Rust crates that is built as part of geckodriver's dependency
chain uses a build script to compile some C code.

Because mozbuild does not yet pass the compiler wrapper down to where
the gcc crate can find it, we need to avoid building on geckodriver when
this is the case.

When compiling the browser for the rooting hazard analysis build (labelled
H on Treeherder), the MOZ_HAZARD environment variable will be set and
available to moz.build descriptions.

MozReview-Commit-ID: GprFKtvXvOE

--HG--
extra : rebase_source : f45aa5d8c86673c8287371efcfa703755c2b2073
2017-05-23 14:59:58 +01:00
Mike Hommey 282a2bc3b8 Bug 1363811 - Replace is_nightly with milestone.is_nightly. r=cmanchester+432261
And remove is_nightly.
2017-05-19 07:05:05 +09:00
Mike Hommey f10295dbae Bug 1363811 - Replace all uses of delayed_getattr(a, 'b') with a.b. r=cmanchester+432261
And remove delayed_getattr.
2017-05-19 07:03:40 +09:00
Wes Kocher 0a5ec26ac6 Merge inbound to central, a=merge
UPGRADE_NSS_RELEASE

MozReview-Commit-ID: 9BuuGYyJ3RJ

--HG--
extra : amend_source : 57de84460e0ace13892ff1623451b9b9be8eaeeb
2017-05-17 14:48:30 -07:00
Ted Mielczarek adc89dfdd1 bug 1363774 - error if generated old-configure is empty due to broken autoconf. r=glandium
MozReview-Commit-ID: FyS67dORiuX

--HG--
extra : rebase_source : 9d9cdf93f0a0f9d1c8cce1148b3248791cb481c9
2017-05-10 18:00:11 -04:00
Mike Hommey 02a06f7958 Bug 1363992 - Remove support for making jemalloc4 the default. r=njn
--HG--
extra : rebase_source : 77e1c13aa329637d0ec875439d572ee06e6919fa
2017-05-11 13:16:00 +09:00
Nick Alexander 14dd745141 Bug 1365060 - Move MOZ_{NATIVE_DEVICES, INSTALL_TRACKING} to moz.configure. r=chmanchester
This intentionally allows to set MOZ_INSTALL_TRACKING without
reference to the milestone being release or beta.  That is, we
separate the default value (which depends on release or beta) from the
value specified, making life easier for developers.

MozReview-Commit-ID: 3vPF7KO7fEX

--HG--
extra : rebase_source : 8d5764104b5322a32e4a048bfd3222f62fed73bb
2017-05-15 14:37:54 -07:00
Jan Beich e3a9e4a0f1 Bug 1365633 - Add rustc target for Android x86_64. r=rillian
MozReview-Commit-ID: 8lbkRTusiMg

--HG--
extra : rebase_source : bc223d5fc85793a83b09286b7b3d4620f6a8d07b
2017-05-17 15:13:34 +00:00
Sebastian Hengst 484d2b7f51 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Jduo3F6TzgF
2017-05-14 18:04:29 +02:00
Mike Hommey 6ddaf5ad21 Bug 1316956 - Add a when argument to check_prog. r=chmanchester
--HG--
extra : rebase_source : ce5167bbceb31e554857cba940e72181a5fa361b
2017-05-13 07:12:56 +09:00
Petr Sumbera 40f1ee9e00 Bug 1364036 - Add rustc targets for Solaris. r=ted 2017-05-11 04:40:26 -07:00
Wes Kocher 02015c2300 Merge m-c to autoland a=merge CLOSED TREE
MozReview-Commit-ID: 5T8pxvbfKXv
2017-05-10 17:29:04 -07:00
Wes Kocher 1b5ad2c128 Merge inbound to central, a=merge
MozReview-Commit-ID: DfRZi0gKjit
2017-05-10 16:48:03 -07:00
Makoto Kato b6736b3728 Bug 1362872 - Use mbcs encoding for vswhere output. r=gps
We add vswhere.exe to support VS2017.  But the description output of this command is localized, so it causes UnicodeDecodeError.

So we should use 'mbcs' encoding for this output on Windows platform. And for minor languages, we should also use replace to avoid decode error.

test_toolchain_configure.py calls vc_compiler_path without correct host.kernel, so we should check current python platform.


MozReview-Commit-ID: AkryAzrgSzs

--HG--
extra : rebase_source : 76f2584fa3890e3c11f5ee023b2359a9a19beb16
2017-05-08 15:31:44 +09:00
Mike Hommey 563880df0e Bug 1363585 - Forbid boolean operations on @depends functions. r=chmanchester
Doing something like "not foo" when foo is a @depends function is never
going to do what the user expects, while not necessarily leading to an
error (like, when used in set_config).

It is better to have an error in those cases where it's expected not to
work, at the expense of making templates a little more verbose, rather
than silently do something the user is not expecting.

--HG--
extra : rebase_source : 87ba80eccc5606322f6dd185d5cb5fc88471e51b
2017-05-10 11:35:22 +09:00
Mike Hommey f57ed7a6e8 Bug 1363582 - Pass environment-only js_options down to old-configure through the environment. r=chmanchester
old-configure does not support being passed them as command line
arguments, so we have to pass them through the environment.

--HG--
extra : rebase_source : e51ea5cc5f95a35929ed1e619d8f04b5d39139fd
2017-05-10 11:04:00 +09:00
Ted Mielczarek 8f2c658ba3 bug 1358215 - add MOZ_PHOTON_ANIMATIONS config var/define, default enabled on nightly. r=chmanchester
MozReview-Commit-ID: JBdo2ppiJOP

--HG--
extra : rebase_source : 00e09d9d99fb52f5268c34fce73956df32581002
extra : source : 6fef5e7b5a233f43ea1e1572d2beb857295fdff0
2017-05-08 16:01:44 -04:00
Ralph Giles f56cb16c14 Bug 1336153 - Remove MOZ_RUST. r=ted
We now have code that unconditionally requires the rust
compiler and are committed to adding more. Remove this
last vestige of conditional support.

MozReview-Commit-ID: EK6FBnAbR

--HG--
extra : rebase_source : 6efda10a74f9ca0482304c2b1ffe6941e42138f8
2017-05-09 11:36:13 -07:00
Jim Chen 055a903128 Bug 1360291 - Detect NDK version number; r=nalexander
Detect the NDK major/minor version numbers, and feed that to Breakpad.
For AArch64, some Breakpad headers try to workaround NDK oddities by
checking the ANDROID_NDK_MAJOR_VERSION and ANDROID_NDK_MINOR_VERSION
macros.
2017-05-04 19:19:31 -04:00
Jim Chen 5a39ae87ca Bug 1360291 - Set minimum NDK platform version to 21 for 64-bit builds; r=nalexander
64-bit is only supported in android-21 and above in the NDK.
2017-05-04 19:19:30 -04:00
Alex Gaynor 9ca18555b2 Bug 1360299 - When --enable-hardening is used, --enable-pie will be automatically enabled r=froydnj
r=froydnj

MozReview-Commit-ID: 7QFOTzSlXSj

--HG--
extra : rebase_source : 3dfde8102bdaf5afcd3fb4c9b5e9b78023e2d779
2017-05-01 15:00:50 -04:00
Frank-Rainer Grahl 2f2263123a Bug 1360631 - Fix VS2015 x86 cross compiling using start-shell.bat. r=ted 2017-04-30 03:40:00 -04:00
Nathan Froyd d9e05176d0 Bug 1329737 - part 1 - define a RUST_TARGET_ENV_NAME config variable; r=rillian
We need this for forming various Cargo environment variables.
2017-04-28 14:06:42 -04:00
Wes Kocher 9528ad9a03 Merge m-c to inbound, a=merge
MozReview-Commit-ID: DaH1djmEY5A
2017-04-27 13:29:07 -07:00
Ted Mielczarek f12882b7f6 bug 1318143 - add a --with-visual-studio-version to choose which VS version configure chooses when multiple versions are installed. r=gps
MozReview-Commit-ID: C6IoZJNHR4G

--HG--
extra : rebase_source : 60afcf53d61b8314cbd9e621ead8efd282e28a39
2017-04-20 12:43:44 -04:00
Ted Mielczarek e0a932a9ba bug 1318143 - add support for detecting Visual Studio 2017 to configure. r=gps
This patch adds a copy of vswhere.exe to build/win32, downloaded from the
current latest release (1.0.62):
https://github.com/Microsoft/vswhere/releases/download/1.0.62/vswhere.exe

It changes toolchain.configure to invoke vswhere.exe instead of reading
the registry, since that no longer works for VS2017 (but vswhere can locate
VS2015). It also removes a layer of complexity in that code by dropping
support for non-64-bit host systems, since we don't really support building
on 32-bit Windows anymore anyway.

There's a little bit of fixup in windows.configure where some LIB paths
have changed in 2017.

MozReview-Commit-ID: 5XLWjidS6W4

--HG--
extra : rebase_source : 90f79b6f4a2d8d925dd20eb0bf6ab96262c227d5
2017-04-26 15:18:48 -04:00
Tom Ritter f8c3899ea0 Bug 1353541 Fix rustc in MinGW build r=froydnj,ted
rustc generates .lib files for its libraries when compiling for Windows
(even using MinGW on Linux). But MinGW expects .a files. So we add in
rust-specific prefix and suffixes so MinGW builds can find the libs that
rustc generates. (And the RUST_LIB- variables default to the same vales
as the LIB_ variables otherwise.)

MozReview-Commit-ID: ClsA0YuJaxh

--HG--
extra : rebase_source : 7b46460c94ceb34b7a5a302ce91d3f1dca600041
2017-04-26 12:08:59 -05:00
Sebastian Hengst 6d6d39a029 Backed out changeset 6eb93543bf16 (bug 1318143) for Windows build bustage. r=backout 2017-04-25 22:38:36 +02:00
Sebastian Hengst 21f78de4ba Backed out changeset fc094009b7c1 (bug 1318143) 2017-04-25 22:38:09 +02:00
Ted Mielczarek 3a3b0348ed bug 1318143 - add a --with-visual-studio-version to choose which VS version configure chooses when multiple versions are installed. r=gps
MozReview-Commit-ID: C6IoZJNHR4G

--HG--
extra : rebase_source : 33a4aeae84f897e5402f1e41ac5e4f18a68c0eea
2017-04-20 12:43:44 -04:00
Ted Mielczarek aaf6f64815 bug 1318143 - add support for detecting Visual Studio 2017 to configure. r=gps
This patch adds a copy of vswhere.exe to build/win32, downloaded from the
current latest release (1.0.62):
https://github.com/Microsoft/vswhere/releases/download/1.0.62/vswhere.exe

It changes toolchain.configure to invoke vswhere.exe instead of reading
the registry, since that no longer works for VS2017 (but vswhere can locate
VS2015). It also removes a layer of complexity in that code by dropping
support for non-64-bit host systems, since we don't really support building
on 32-bit Windows anymore anyway.

There's a little bit of fixup in windows.configure where some LIB paths
have changed in 2017.

MozReview-Commit-ID: 5XLWjidS6W4

--HG--
extra : rebase_source : 15c69aeca3295a1811c85a9cf4c2793312dcd122
2017-04-25 06:29:30 -04:00
Alex Gaynor 1de783d5aa Bug 620058 - Add a --enable-hardening flag, which compiles with -fstack-protector-strong on GCC and Clang r=froydnj
This flag enables the stack-cookie exploit mitigation for all functions which
manipulate stack-based buffers, providing better protections than
-fstack-protector, at considerably lower performance overhead than
-fstack-protector-all.

r=froydnj

MozReview-Commit-ID: 7ZNAHHAf376

--HG--
extra : rebase_source : 6d5ccbb9537372912c3f5a73fe0fdc65bb68ac08
2017-04-12 13:58:22 -04:00
Wes Kocher 58582c5053 Backed out changeset 042c7c020a3b (bug 1362872) for build failures in test_toolchain_configure.py a=backout CLOSED TREE
MozReview-Commit-ID: DwmjdL7C5VX

--HG--
extra : amend_source : 7499f887d0ec66151537768175d84227d87985b4
2017-05-08 14:45:58 -07:00
Makoto Kato 0ce2bd7615 Bug 1362872 - Use mbcs encoding for vswhere output. r=gps
We add vswhere.exe to support VS2017.  But the description output of this command is localized, so it causes UnicodeDecodeError.

So we should use 'mbcs' encoding for this output. And for minor languages, we should also use replace to avoid decode error.

MozReview-Commit-ID: AkryAzrgSzs

--HG--
extra : rebase_source : 8413c623902b04785b43eb77047ed436bf82a5aa
2017-05-08 15:31:44 +09:00
Edmund Wong 33a667c380 Bug 1358403 - Add a colon to complete the rust url when mach build dies when it can't find the rust compiler. r=froydnj
MozReview-Commit-ID: 3E3A9laTdoX

--HG--
extra : rebase_source : 2c5745eadd935b0e20abfb2d106bdb247ea0b5e8
2017-04-21 15:43:14 +08:00
Chris Peterson 1345634886 Bug 1356843 - Enable -Wcomma clang warnings. r=glandium
Warn about possible misuse of the comma operator such as between two statements or to call a function for side effects within an expression. Only enable these -Wcomma warnings for C++ code because there are almost two hundred -Wcomma warnings in third-party C libraries. I reviewed the C warnings and confirmed none of them were latent bugs. We won't fix these libraries' warnings so they are just noise.

MozReview-Commit-ID: 1JXJumg6DsJ

--HG--
extra : rebase_source : c48189653361aa84edd3004188315cd73aefa9b5
extra : amend_source : 30be5afeb03eff26d59ccde57c0eb547b743c304
2017-04-08 12:36:48 -07:00
Carsten "Tomcat" Book 54c9498baf Merge mozilla-central to mozilla-inbound 2017-04-20 13:03:06 +02:00
Dragana Damjanovic ecca1ff420 Bug 1310197 - Implement fast open nspr part. r=mcmanus,bagder 2017-04-20 14:11:26 +08:00
Tom Ritter 7d7682b05b Bug 1314979 Support cross compilation with MINGW in windows.configure r=glandium
MINGW builds do not need any of the checks that are performed in the
windows.configure file. Nor do they the D3D compiler DLL that is
needed for ANGLE, so we can skip that entire section in
old-configure.in.

MozReview-Commit-ID: DqufbgGoGy4

--HG--
extra : rebase_source : d5f1ed371f79a8a16f888ccc5d058ac72a69f34f
2017-04-19 10:18:01 -05:00
Petr Sumbera 0e17adee7c Bug 1354510 - Firefox build should recognize Solaris. r=glandium
--HG--
extra : rebase_source : 2bec2709a26a5295e723b0ecc424b0d648715bb7
2017-04-11 00:01:32 -07:00
Mike Hommey e91179eda5 Bug 1344038 - Remove --enable-gnomeui. r=karlt
--HG--
extra : rebase_source : 562519f2f6727750afe7d4a8503b41e722222d7d
2017-03-08 15:35:53 +09:00
Mike Hommey 94c16743bb Bug 1344038 - Remove --disable-gio. r=karlt
--HG--
extra : rebase_source : 3b5b820536b0e9b1fb1da3a16c444ed7839770b9
2017-04-05 14:06:25 +09:00
Iris Hsiao 15a34cacd2 Backed out 3 changesets (bug 1344038) for bustage
Backed out changeset 4befea89d81b (bug 1344038)
Backed out changeset c859506b2e4e (bug 1344038)
Backed out changeset 5d28a6382285 (bug 1344038)

--HG--
rename : netwerk/protocol/gio/moz.build => extensions/gio/moz.build
rename : netwerk/protocol/gio/nsGIOProtocolHandler.cpp => extensions/gio/nsGIOProtocolHandler.cpp
2017-04-06 10:35:56 +08:00
Mike Hommey a96508cc4d Bug 1344038 - Remove --enable-gnomeui. r=karlt
--HG--
extra : rebase_source : cf3cd5795af68fd08ee1e1f0d7b89a67d453fa87
2017-03-08 15:35:53 +09:00