Commit Graph

560 Commits

Author SHA1 Message Date
Chris Manchester
7539017f92 Bug 1403346 - Use AC_SUBST_LIST for various configure variables containing compile flags. r=glandium
MozReview-Commit-ID: 6BjKBSVGAw4
2017-10-25 15:11:54 -07:00
Chris Manchester
a1d26e4177 Bug 1403346 - Make a separate variable used to append pgo flags to compile command lines. r=glandium
This commit establishes a separate variable to add PROFILE_GEN and PROFILE_USE
CFLAGS to compile and link command lines. Currently the make backend
orchestrates the pgo build steps and is the only thing aware of whether
we're in the profile generate or profile use stage. The flags are separated
here to allow other flags to be moved to mozbuild, but this will not yet
sufficient to perform a PGO build independent of the make backend.

MozReview-Commit-ID: IX30l2MvvNc
2017-10-25 15:10:04 -07:00
Chris Manchester
77827089d0 Bug 1403346 - Do not set unneeded CFLAGS variables during artifact builds. r=glandium
When we move to a shell aware split for AC_SUBST_LIST it will become an error
to emit an unquoted make variable reference. Currently this happens to only
occur during artifact builds when setting cflags related variables that aren't
needed there anyway, so here we skip settting those variables when a compile
environment isn't present.



MozReview-Commit-ID: EnHu48yyZ1C
2017-10-25 15:10:04 -07:00
Chris Manchester
94d7650a55 Bug 1403346 - Use AC_SUBST_LIST for OS_COMPILE_C{XX}FLAGS. r=glandium
MozReview-Commit-ID: Iz2slNFKR81
2017-10-25 15:10:04 -07:00
Chris Manchester
5c1a91facd Bug 1403346 - Expand references to the objdir in old-configure. r=glandium
MozReview-Commit-ID: LtReuXQwheR
2017-10-25 15:10:04 -07:00
Chris Manchester
5ce7957d0f Bug 1403346 - Use AC_SUBST_LIST for DSO_CFLAGS and DSO_PIC_CFLAGS r=glandium
MozReview-Commit-ID: 7aJ7uOR6tjO
2017-10-25 15:10:03 -07:00
Gregory Szorc
ae7cf57366 Bug 1411081 - Move --enable-optimize/MOZ_OPTIMIZE to moz.configure; r=glandium
The Rust optimization logic is tied to --enable-optimize/MOZ_OPTIMIZE
and --enable-debug/MOZ_DEBUG. In order to more easily implement more
customization, let's move --enable-optimize/MOZ_OPTIMIZE to
moz.configure so its value can be consulted there.

The logic here is a bit wonky. The option behaves like a boolean
or a string. If a string, MOZ_OPTIMIZE is set to 2. Otherwise it
is 1 or unset depending on the boolean value.

The custom compiler flags string is passed to old-configure, where it
overwrites whatever old-configure derived as the default value.
We stop short of moving all references to MOZ_OPTIMIZE_FLAGS to
moz.configure because there are a handful of them and I don't want
to scope bloat.

MozReview-Commit-ID: 6iNDu2HwLGr

--HG--
extra : rebase_source : a64f1236012d13913f21253df1b9b5ff0ae8ea6e
2017-10-24 19:54:48 -07:00
Gregory Szorc
b7a368158f Bug 1411081 - Move assignment of default value for MOZ_OPTIMIZE_FLAGS; r=glandium
It is now closer in the file to where other default values are computed.

MozReview-Commit-ID: BffCEb6FAUP

--HG--
extra : rebase_source : 81b17131f9330d89818a36ffff625b672c19c01e
2017-10-24 19:30:48 -07:00
Mike Hommey
bf5c85e4ef Bug 1411156 - Set MOZ_DEBUG globally as both a CONFIG and a #define. r=mshal
Bug 1365460 introduced code paths behind MOZ_DEBUG #ifdefs, but
MOZ_DEBUG is never defined, while it is available in CONFIG in
moz.builds. This is kind of a confusing situation, but the fact that
we've been able to avoid those problems for so long would tend to
put the blame on mozjemalloc, and fixes should go there.

Except that bug 1261161 explains that the only existing alternative
(the DEBUG #define), as used in MFBT, is not working for spidermonkey,
so it actually makes sense to converge to MOZ_DEBUG rather than DEBUG.

So start defining MOZ_DEBUG globally, fixing the mozjemalloc issues of
not having the debug code enabled. Bug 1261161 can then take care of
changing the DEBUG #ifdefs.

--HG--
extra : rebase_source : 37e3d03ac8350c62c8059d4ca01d1ecfdf5f421a
2017-10-24 14:07:37 +09:00
Tom Ritter
47a066f95e Bug 1359908 Add FORTIFY_SOURCE to gcc and clang builds by default r=froydnj
This adds a section in both old-configure.in's for hardening flags.

In old-configure.in we add $HARDENING_CFLAGS (which are turned on by
--enable-hardening) and are defined in toolchain.configure (and
which does compiler detection there.) We then add non-optional
hardening flags, performing compiler detection here.

In js/src/old-configure.in we follow the same pattern, but omit
$HARDENING_CFLAGS because we don't apply the current lone flag
to js (doing so is Bug 1359905).

MozReview-Commit-ID: EFE0Pc7yZHa

--HG--
extra : rebase_source : f793e665cabe3d33bdc73fc8a68208d69b55137a
2017-10-19 01:43:07 -05:00
Nick Alexander
af26e68984 Bug 1366644 - Part 3a: Update Android build-tools (25.0.3), Gradle (3.4.1), Android-Gradle (2.3.3). r=maliu
The goal is to use a newer Android-Gradle build plugin version (2.3.3
is latest stable).  That requires a modern Gradle (anything 3.3+, but
3.4.1 is the default from my Android Studio), and also a newer
build-tools (25.0.3 is latest stable).

The locations of lint output changed, and we want to use the standard
output location because it's difficult to accommodate variant details
in custom names.  We change the location of findbugs output to follow
suit.

This requires either:

- fixing lint errors
- adding to the lint whitelist
- using the new lint baseline

It's best to use the new lint baseline, which will happen in the next commit.

MozReview-Commit-ID: D19FzIDCJrE

--HG--
extra : rebase_source : 12d132c0c3e0dbe2b8873b31360ea96d612de44c
2017-10-16 15:09:15 -07:00
Mike Hommey
1c51789e7e Bug 1407468 - Only build js/src when building toolkit. r=mshal
--HG--
extra : rebase_source : 3112ad271f23e8d01dfbe9141ec2b4bdd80f3748
2017-10-05 11:30:18 +09:00
Mike Hommey
2998d3dcc4 Bug 1407468 - Only enable necko-wifi by default when toolkit is built. r=mshal
--HG--
extra : rebase_source : 08694286f5f55242ae2581b7e69439d6ebc78ecb
2017-10-05 11:41:25 +09:00
Jan Henning
a31bec0c1f Bug 1407029 - Accept Android lint dependencies from SDK versions 26.0.0*. r=nalexander
MozReview-Commit-ID: GHMRossAUaB

--HG--
extra : rebase_source : c4ad6eddd4436c6169b98913a5aa9e085e15a70e
2017-10-09 21:54:54 +02:00
Mike Hommey
4d379e455b Bug 1403366 - Remove the --with-default-mozilla-five-home configure flag. r=froydnj
--HG--
extra : rebase_source : 354efac644a7fdeea507c0e87cf44183d773413d
2017-09-28 11:02:45 +09:00
Franziskus Kiefer
ec342f99ce Bug 1401594 - bump NSS version to 3.34, r=me
MozReview-Commit-ID: AFEfImt8iv

--HG--
extra : rebase_source : c760f256449893247227cd7088f5c059f21502ff
2017-10-04 10:50:19 +02:00
Glenn Randers-Pehrson
16b91208a6 Bug 1402057 - Update in-tree libpng to version 1.6.34. r=jrmuizel 2017-09-30 16:53:00 -04:00
Sebastian Hengst
6692d1c565 Backed out changeset a4914a29fb26 (bug 1330142) 2017-10-03 18:26:38 +02:00
Nathan Froyd
7ae1b94b0c Bug 1330142 - part 2 - move TARGET_XPCOM_ABI to moz.configure; r=chmanchester
Nothing in js/ uses TARGET_XPCOM_ABI, so the code in js's configure is
dead.  Since TARGET_XPCOM_ABI is a Gecko-only thing, the reasonable
place for it is toolkit/moz.configure.

TARGET_XPCOM depends on TARGET_COMPILER_ABI, and the value of
TARGET_COMPILER_ABI is easily derivable from the current target and
compiler.  The only notable change we make in the conversion to
moz.configure is that the ARM old-ABI is no longer supported by any of
our current targets: Android and Linux for ARM targets are both
exclusively EABI nowadays, so we have one less case to worry about.
TARGET_COMPILER_ABI's sole purpose was to provide information for
TARGET_XPCOM_ABI, and since we are deriving TARGET_XPCOM_ABI exclusively
inside moz.configure, we can remove TARGET_COMPILER_ABI.
2017-10-03 10:33:44 -05:00
Sebastian Hengst
863d9030ca Backed out changeset 48a74b8750b4 (bug 1403366) 2017-09-29 17:19:22 +02:00
Mike Hommey
4c9ac7836e Bug 1403366 - Remove the --with-default-mozilla-five-home configure flag. r=froydnj
--HG--
extra : rebase_source : e2723771fb76392269ea27de00c590e2e2bc6d9b
2017-09-28 11:02:45 +09:00
Mike Shal
43b9ff721e Bug 1402404 - Remove HAVE_CPP_PARTIAL_SPECIALIZATION from non_global_defines; r=chmanchester
Use of this define was removed in bug 866988, but is still listed in
non_global_defines.

MozReview-Commit-ID: BIiwlxL6i7i

--HG--
extra : rebase_source : 76488041e4144eccc63854a9267bd42adf3b4a85
2017-09-22 13:46:12 -04:00
Chris Manchester
68ede80645 Bug 1401654 - Move MOZ_WEBRTC and some related defines to moz.configure. r=mshal
MozReview-Commit-ID: Kp7lCLqJ6FH

--HG--
extra : rebase_source : f2f9d3fb85e1c22df6c0c7cee3072e54a8b8b3e0
2017-09-20 16:29:39 -07:00
Ting-Yu Lin
985a397720 Bug 1281101 Part 3 - Remove MOZ_ENABLE_MASK_AS_SHORTHAND in old-configure.in. r=ted
MozReview-Commit-ID: 5LoLlZN7yuv

--HG--
extra : rebase_source : c6293275f8f9a37a9c8192dfec521f15c6965ed7
2017-09-21 17:41:25 +08:00
Kai Engert
3d4de91391 Bug 1393854, land NSPR_4_18_RTM, no code change, only version numbers, r=me
UPGRADE_NSPR_RELEASE
DONTBUILD
2017-09-19 18:43:02 +02:00
Liang Wei
6b9969cba4 Bug 1120444 - Use fdatasync properly instead of fsync where appropriate. r=glandium
MozReview-Commit-ID: 4ObwOvWhrhx

--HG--
extra : rebase_source : 25c5a97458c485bd314397847823f11d4bf02019
2017-09-01 09:03:22 +02:00
Wes Kocher
05c4aba599 Merge m-c to autoland, a=merge CLOSED TREE
MozReview-Commit-ID: 2dRRh6JLTIL
2017-09-11 15:21:36 -07:00
Jon Coppeard
a2c208aafe Bug 1396156 - Define MOZ_DEV_EDITION for js/src. r=ted 2017-09-08 04:27:00 -04:00
Chris Manchester
e059037e2b Bug 1386876 - Add classes to handle compile flags computed by moz.build with templates, convert 'DISABLE_STL_WRAPPING' to use them. r=glandium
MozReview-Commit-ID: 3PYOtX4E8OC

--HG--
extra : rebase_source : 162999582bc2ef078680ce6feae628d5b1f4e857
2017-04-28 16:35:19 -07:00
Ryan VanderMeulen
4febc79b28 Bug 1393526 - Upgrade to SQLite 3.20.1. r=mak 2017-08-24 14:50:48 -04:00
Sebastian Hengst
75955d0246 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 8fJX1xXgzhD
2017-08-22 11:49:04 +02:00
Nevin Chen
7ef4d3ebee Bug 1391575 - Move MMA GCM sender ID to config file r=maliu,nalexander
MozReview-Commit-ID: Iro4cszQrpF

--HG--
extra : rebase_source : 640614062d699413afdf15c29606a3bfff2d461b
2017-08-18 18:12:11 +08:00
Ryan VanderMeulen
c44c375e1a Bug 1386401 - Upgrade to SQLite 3.20.0. r=mak
--HG--
extra : rebase_source : 6a5cfc168b4d2ecef1e472b7b10b2db70c6e2e9c
2017-08-21 11:08:13 -04:00
Eric Rahm
0938982c90 Bug 1389598 - Part 4: Remove remaining gonk refs. r=froydnj
--HG--
extra : rebase_source : 063c7f95dda063eafabfa1921366bd1957b8fe73
2017-08-11 17:45:18 -07:00
Eric Rahm
fb60453284 Bug 1386825 - Part 5: Remove MOZ_B2G from configure. r=glandium
MozReview-Commit-ID: Cg5gljpECwo
2017-08-08 14:41:11 -07:00
Nathan Froyd
6b3217da7f Bug 1385276 - move PROFILE_*FLAGS to moz.configure; r=mshal
We are guaranteed to use a GCC or clang new enough that we don't have to
bother checking whether the flags are supported or not.
2017-08-04 13:56:38 -04:00
Nathan Froyd
d7190c617c Bug 1387185 - remove --enable-url-classifier configure option; r=mshal
Nothing uses the corresponding defines and substs.
2017-08-04 13:56:38 -04:00
Nathan Froyd
51495a8284 Bug 1387185 - remove --disable-mozril-geoloc configure option; r=mshal
Nothing uses the defines and substs that it sets, and no in-tree
mozconfigs pass it as an option.
2017-08-04 13:56:38 -04:00
Franziskus Kiefer
95280a653c Bug 1386955 - land NSS a0a4e05dcdd5 UPGRADE_NSS_RELEASE, r=me
--HG--
extra : rebase_source : 913834daab6b8404dbeb0654e40e3e7f4ca24a9f
2017-08-04 14:13:06 +02:00
Franziskus Kiefer
382d8cae0a Backed out changeset 0d570ffa07be due to xpcshell test bustage 2017-08-03 12:23:26 +02:00
Franziskus Kiefer
6b1ced62cf Bug 1386955 - bump NSS version old-configure.in to 3.33, r=me
--HG--
extra : rebase_source : 0fc5b22dbd03cbabf9e1bf2e72e92dbb0947e46d
2017-08-03 10:24:46 +02:00
Glenn Randers-Pehrson
8e5226d344 Bug 1377118 - Update in-tree libpng to version 1.6.31. r=jrmuizel
--HG--
extra : rebase_source : 72613717bc7380d217f64ea6ae1191563bdedf4a
2017-07-27 11:42:00 -04:00
Wes Kocher
7a65251f71 Merge m-c to autoland, a=merge
MozReview-Commit-ID: KvG6hKUwF8c
2017-07-27 16:33:25 -07:00
Mike Hommey
eafa227d8d Bug 1359912 - Add -z relro linker flags. r=gps
--HG--
extra : rebase_source : ae42e299d59cc139503c411e663cc81b18ff4177
2017-07-26 07:12:59 +09:00
Kai Engert
4b5d3d40a9 Bug 1372579, uplift NSPR_4_16_RTM, no code changes, only version numbers, r=me
UPGRADE_NSPR_RELEASE, DONTBUILD

--HG--
extra : amend_source : 6c51fc6eac78a06c3f2bfbcfa98cee2ec0986d00
2017-07-27 15:33:57 +02:00
Carsten "Tomcat" Book
d360d49d2a merge mozilla-inbound to mozilla-central a=merge 2017-07-27 10:57:25 +02:00
Wes Kocher
512f32055e Backed out changeset adb09e2d7a30 (bug 1359912) for breaking linux noopt debug builds a=backout
MozReview-Commit-ID: E1treEAWecM
2017-07-26 15:30:17 -07:00
Mike Hommey
b9fc5a46aa Bug 1359912 - Add -z relro linker flags. r=gps
--HG--
extra : rebase_source : ae42e299d59cc139503c411e663cc81b18ff4177
2017-07-26 07:12:59 +09:00
Mike Hommey
e1dcb01130 Bug 635961 - Don't disable elfhack when the linker creates GNU_RELRO segments. r=froydnj
--HG--
extra : rebase_source : e739cd796f19fb770c6502806873282da9de5264
2017-07-11 08:10:50 +09:00
Wes Kocher
5dbd554bdd Backed out 2 changesets (bug 635961) at developer's request a=backout
Backed out changeset c56fa9c1eda0 (bug 635961)
Backed out changeset ddda63d5366e (bug 635961)

MozReview-Commit-ID: I6NxBctFn8e
2017-07-25 17:57:43 -07:00