Commit Graph

6102 Commits

Author SHA1 Message Date
Sebastian Hengst
772d7c9a4f Backed out changeset ffeffef36f34 (bug 1344892) on request of developer for issues with Android reftests. r=backout on a CLOSED TREE 2017-03-10 21:53:00 +01:00
Jim Chen
c96d20e3f4 Bug 1344892 - Let native calls dispatch to XPCOM event queue; r=snorp
Bug 1344892 - 1. Add option to dispatch to priority queue; r=snorp

For the regular "gecko" option, change to dispatching to the XPCOM event
queue, and add a new "gecko_priority" option that dispatches calls to
the widget event queue.

Bug 1344892 - 2. Update dispatchTo = "gecko" options; r=snorp

Update some existing dispatchTo = "gecko" options to "gecko_priority",
which typically involve UI events or JNI management calls like
disposeNative.

Bug 1344892 - 3. Update auto-generated bindings; r=me
2017-03-10 14:10:15 -05:00
Dan Minor
2f2e51556a Bug 1343557 - Update build for gtest and gmock 1.7.0; r=ted.mielczarek
I've moved the mozilla specific gtest stuff to link directly in xul-gtest
rather than in the gtest static library to make it possible for standalone
programs to link against this library and not have to link
against other mozilla libraries. This allows us to build
media/webrtc/signaling/fuzztest against this version of gtest rather than the
webrtc version of gtest, which I plan to remove in a follow on bug.

I had to add a global disable for -Wgnu-zero-variadic-macro-arguments as we
hit that everywhere we use the INSTANTIATE_TEST_CASE_P macro.

This brings forward the fix from Bug 844630 to the visibility of environ in
gtest-death-test.cc.

I also removed code that set GTEST_API_ to a visibility that conflicts with
what we've defined elsewhere in tree.

MozReview-Commit-ID: 3cfuapC6vn0

--HG--
extra : rebase_source : 6e5d2684718b6ddaa5a64c1f26a0172c91b5a719
2017-03-03 14:54:05 -05:00
Carsten "Tomcat" Book
6d06361383 merge mozilla-inbound to mozilal-central a=merge 2017-03-09 11:23:25 +01:00
Edmund Wong
947993dd6e Bug 1343781 - Ensure MozconfigLoader uses the right topsrcdir. r=glandium 2017-03-09 10:50:35 +08:00
Ting-Yu Chou
646b846105 Bug 1335991 part 2 - Make sure the cxxRecordDecl has definition before checking anything. r=Ehsan
MozReview-Commit-ID: 6iePpR7lErc

--HG--
extra : rebase_source : 93ca2919fcda84537bb92e0fd1fc09de70a8db72
2017-03-08 15:43:06 +08:00
Carsten "Tomcat" Book
96fe421b34 Merge mozilla-central to autoland 2017-03-08 17:04:17 +01:00
Carsten "Tomcat" Book
f6885163cd Merge mozilla-central to mozilla-inbound 2017-03-08 14:28:34 +01:00
Andrew Halberstadt
430f043d9e Bug 1345109 - Delete 'JS_STANDALONE' from EmptyConfig when generating test metadata, r=mshal
EmptyConfig objects set JS_STANDALONE=1 by default. However, test tasks that need to run without an objdir
need to be behind an "if not CONFIG['JS_STANDALONE']" condition to avoid causing bustage to sm-pkg task (js
packaging). This patch explicitly deletes that default value, only when generating the TestManifestBackend.

Ideally, the js/src packaging should have their own moz.build instead of re-using the root moz.build. But this
is an easier fix in the short term to get the marionette-harness tests working again.

MozReview-Commit-ID: 26lHLY6WlZK

--HG--
extra : rebase_source : 9c2ffdd938f2f2d6ead7d2aead610a7028e18d97
2017-03-07 10:56:22 -05:00
Wes Kocher
9d3f12083b Merge m-c to inbound, a=merge
MozReview-Commit-ID: 1Kk6k8R6WCf
2017-03-07 16:45:07 -08:00
Michael Layzell
4689eec07a Bug 1331434 - Part 1: Add an analysis to require a return after calls to annotated functions, r=ehsan
MozReview-Commit-ID: 7NqXap8FdSn
2017-03-07 19:06:48 -05:00
Chris Manchester
aee85b13ae Bug 1314678 - Do not include mozconfig.cache in cross-mozconfig.common. r=mshal
It's already included by the nightly and debug mozconfigs which end up including
cross-mozconfig.common, including it again appears ineffectual and causes
failures in artifact builds.

MozReview-Commit-ID: 1DH4r8mgNXe

--HG--
extra : rebase_source : d01254a2140ad6fc90321c8a5d1f4c439e93f7b1
2017-03-07 10:21:33 -08:00
Chris Manchester
8e8ec45e4e Bug 1314678 - Unset TOOLCHAIN_PREFIX in mozconfig.artifact r=mshal
MozReview-Commit-ID: 6Qsykj1584r

--HG--
extra : rebase_source : 026e877d2e3370d405932107c0d5a7fe80281a67
2017-03-07 10:21:33 -08:00
Ting-Yu Chou
998c531581 Bug 1335991 part 1 - Bump to clang r293859 to fix a crash at nsZipArchive::GetItem on 64-bit clang-cl builds. r=Ehsan
MozReview-Commit-ID: 8ZO4sSmvZRG

--HG--
extra : rebase_source : 31e196ffe69614e699e6e1f6269fad1678df96f0
2017-02-15 09:23:49 +08:00
Mike Hommey
25b39c3581 Bug 1343713 - Avoid mozconfig failures when clang-cl/msvc are not present. r=ted
The `cd $PATH && pwd` pattern doesn't work when $PATH doesn't exist, so
move them in a block only executed when the directory exists.

--HG--
extra : rebase_source : 53bd2959dbd9825526a386b6ab5b40a7f67a5d20
2017-03-01 11:10:14 +09:00
Mike Hommey
a1d07f91d8 Bug 1343713 - Avoid mozconfig failure when sccache is not there. r=ted
The build will fail during configure anyways in that case, not silently
fallback to compiling without it.

--HG--
extra : rebase_source : 8f12f64da6a635e63339a988f27ada893f567712
2017-03-01 11:06:40 +09:00
Julian Seward
b5cfe41a97 Bug 1343587 - Further suppressions for Mochitests on Valgrind on Taskcluster, March 2017. r=n.nethercote. 2017-03-02 16:14:47 +01:00
Carsten "Tomcat" Book
4a4777d1aa merge mozilla-inbound to mozilla-central a=merge 2017-03-02 14:02:48 +01:00
Andrew Halberstadt
e875270fe1 Bug 1335873 - Check for .pyc's existence before deleting it in mach_bootstrap import hook, r=glandium
This situation can happen if we attempt to import a module we know might not exist, for example:
https://dxr.mozilla.org/mozilla-central/rev/d0462b0948e0b1147dcce615bddcc46379bdadb2/testing/mozbase/mozlog/mozlog/formatters/machformatter.py#9

MozReview-Commit-ID: CTg775kN72h

--HG--
extra : rebase_source : a0ebdff1cb86d1309d72072407a2018f4d0095b2
2017-02-21 11:08:44 -05:00
Michael Layzell
54f10d1dd6 Bug 1336510 - Part 1: Correct the RefCountedInsideLambda Check to complain about capturing and using this without a backing strong reference, r=ehsan
MozReview-Commit-ID: 19jiqArKgxo
2017-03-01 15:09:44 -05:00
Mike Hommey
142fc24229 Bug 1341215 - Remove the dependency on the mozregression module for mach artifact. r=chmanchester
This imports two modules from mozregression in the tree to do so. They
are imported from current trunk on github, rather than the version we
were getting from pypi.

Note we take six from testing/web-platform/tests/tools/six) instead of
moving it to python/six because it's there by coming from a copy of
https://github.com/w3c/wpt-tools, which contains it as a submodule, and
moving it would make updates there harder.

--HG--
extra : rebase_source : 16619d1c3f38f6493fb490a64361b3f4e8fecc1f
2017-02-21 16:10:54 +09:00
Jan Beich
20e7357c74 Bug 1340594 - Make sure Cargo version check can fail. r=froydnj
MozReview-Commit-ID: 9ggzbuE42Wc

--HG--
extra : rebase_source : b6af4b738c020004dc9f08ffa3221695c46bfa01
2017-02-25 04:11:26 +00:00
Wes Kocher
e84fc624ff Merge inbound to central, a=merge
MozReview-Commit-ID: DpCZgRV1csS
2017-02-24 16:46:12 -08:00
Randell Jesup
8ad25a673c Bug 1284800: Fix build fallout from moving libyuv into a subdirectory r=ted
MozReview-Commit-ID: CDMDXqpGueS
2017-02-24 14:01:56 -05:00
Wes Kocher
39dbca81b0 Merge m-c to inbound, a=merge
MozReview-Commit-ID: BYjLy4wkFjg
2017-02-23 16:57:34 -08:00
Wes Kocher
47dc9207cd Backed out changeset 20a81b2adf80 (bug 1330240) under suspicion of turning android mda1 nearly permafail a=backout
MozReview-Commit-ID: LUKhxorIzwU
2017-02-23 16:25:18 -08:00
Nathan Froyd
a13c8b0b74 Bug 1302704 - part 3 - propagate information about CARGO_TARGET_DIR from the frontend into the backend; r=chmanchester
Rust libraries can set RUST_LIBRARY_TARGET_DIR so that they can share
compilation artifacts with other libraries.  This setting needs to be
propagated to the backend so it can be communicated to Cargo.
2017-02-23 10:35:07 -05:00
Jan Beich
959d5215d6 Bug 1330240 - Limit -Wthread-safety to WebRTC due to lack of annotations. r=cpeterson,froydnj,jesup
MozReview-Commit-ID: HuoXFwZkdYo

--HG--
extra : rebase_source : 8f07a7a6de6d794b26b0f2b18eb95452d65c8f40
2017-01-11 16:50:18 +00:00
Jan Beich
b2013667fb Bug 1330240 - Limit -Wthread-safety to WebRTC due to lack of annotations. r=cpeterson,froydnj,jesup
MozReview-Commit-ID: HuoXFwZkdYo

--HG--
extra : rebase_source : 8f07a7a6de6d794b26b0f2b18eb95452d65c8f40
2017-01-11 16:50:18 +00:00
Jan Beich
b3512d775a Bug 1316879 - Don't use CPP/CXXCPP from environment after bug 1299919. r=glandium
MozReview-Commit-ID: 4Of9nsVWK3q

--HG--
extra : rebase_source : 27724098df74dcff33ff5a8113200355ae287ae6
2017-02-23 22:01:18 +00:00
Sebastian Hengst
1e41fcd896 Backed out changeset 2873be3659a3 (bug 1335873) 2017-03-01 17:34:57 +01:00
Andrew Halberstadt
1e34f705c0 Bug 1335873 - Check for .pyc's existence before deleting it in mach_bootstrap import hook, r=glandium
This situation can happen if we attempt to import a module we know might not exist, for example:
https://dxr.mozilla.org/mozilla-central/rev/d0462b0948e0b1147dcce615bddcc46379bdadb2/testing/mozbase/mozlog/mozlog/formatters/machformatter.py#9

MozReview-Commit-ID: CTg775kN72h

--HG--
extra : rebase_source : 8026d22f3b256be15069feac306876627819ba99
2017-02-21 11:08:44 -05:00
Phil Ringnalda
53ccf8158e Backed out 5 changesets (bug 1318370) for mozilla-central Windows static-analysis bustage
Backed out changeset 196f9ddbf7aa (bug 1318370)
Backed out changeset 72f6eace33a1 (bug 1318370)
Backed out changeset c0c0e10ed613 (bug 1318370)
Backed out changeset a8032ae9cb2a (bug 1318370)
Backed out changeset 0848b3201c40 (bug 1318370)
2017-02-21 21:22:01 -08:00
Ted Mielczarek
056368b30f bug 1318370 - fix clang-cl builds. r=bustage
MozReview-Commit-ID: 8imNZDxMkVF

--HG--
extra : rebase_source : 58a6a51428b5c7229dc968e3cc74ea9b751f051e
2017-02-21 06:20:12 -05:00
Ted Mielczarek
c841558f8e bug 1318370 - remove SCCACHE_NAMESERVER from mozconfig.cache, unused since we switched to sccache2. r=glandium
MozReview-Commit-ID: 1ktLJiIY9jh

--HG--
extra : rebase_source : 7516f1c845656093818d6350a0927c47e56a429d
2017-02-17 14:31:20 -05:00
Ted Mielczarek
0ba51f3683 bug 1318370 - move _DEPEND_CFLAGS+CL_INCLUDES_PREFIX to toolchain.configure, ignore {CC,CXX}_WRAPPER when using sccache r=glandium
Currently mozconfig.cache overrides a few build options for sccache. This
patch moves them into toolchain.configure so that the build system will
set them properly when sccache is in use. Additionally, {CC,CXX}_WRAPPER
are set in config.mk, so just avoid setting them when sccache is in use.

MozReview-Commit-ID: FYlVKRI8OiN

--HG--
extra : rebase_source : cc7e4346869b98a52840c101824044abc236637f
2017-01-10 16:52:27 -05:00
Ted Mielczarek
5d759be63f bug 1318370 - stop using -Z7 for MSVC compilation with sccache. r=glandium
We've been using -Z7 to make MSVC emit CodeView debug info directly in
the object files instead of in PDB files because sccache can't cache
PDB files if the same one is written to by multiple compiles, which
was previously happening in our build system, and was hard to override
in the NSS build. Now that those are fixed this should work fine.

This adds a bit to the compile rule to remove the PDB file before
compilation, since sccache won't cache a compilation if the PDB file
it is supposed to generate already exists (for the aforementioned reason).

MozReview-Commit-ID: rFlX0XfTGw

--HG--
extra : rebase_source : 8f991ce72115537466f5720c20dc53083f3b2b35
2016-12-14 14:58:26 -05:00
Carsten "Tomcat" Book
9857d2af8e merge mozilla-inbound to mozilla-central a=merge 2017-02-20 14:05:25 +01:00
Ralph Giles
d3fb57abec Bug 1340587 - Remove MOZ_CARGO_SUPPORTS_FROZEN. r=froydnj
We now require cargo by version, and the minimum (0.16)
supports --frozen, so we don't need to check for this.

MozReview-Commit-ID: GPoadLkhRO5

--HG--
extra : rebase_source : e191e5dd2533e28c1bca0812f2776196cc3559cf
2017-02-17 12:16:45 -08:00
Tom Tromey
b6eaee7842 Bug 1060419 - add -Werror=format to the warnings.configure, r=froydnj
MozReview-Commit-ID: 9pvECUzAjF1

--HG--
extra : rebase_source : 4a1e1d8b243128e62359c32b3d7c5ad01d3cefac
2016-12-15 09:57:59 -07:00
Mike Shal
ad087668b7 Bug 1339182 - Remove OSX universal support in the build system; r=glandium
This removes the UNIFY_DIST and UNIFIED_BUILD variables, as well as the
--unify flag from the packager and UnifiedBuildFinder from mozpack. As a
result the STAGEPATH variable is never defined anymore, so its uses can
be removed as well.

test_unify.py is currently the only mozbuild/mozpack test that fails
without running configure first, and there isn't much point in fixing
tests for things that we don't actually use anymore.

MozReview-Commit-ID: F5q1FPW3Did

--HG--
extra : rebase_source : cadbd237f51c23ea1983135294521d628d16f0df
2017-02-10 16:52:17 -05:00
Andrew Halberstadt
ea89582f61 Bug 1320194 - Generate all-tests.pkl and related files when resolving tests r=mshal
This replaces the 'run-tests-deps' make target with a python function that will directly
read moz.build files, emit them with TestManifestEmitter, then consume them with
TestManifestBackend. Because the TestResolver is the only place that actually reads the
test metadata files, we can remove this logic from the CommonBackend as well.

MozReview-Commit-ID: DXgMoeH5dKf



MozReview-Commit-ID: HstZ57qkqf2

--HG--
extra : rebase_source : f377fa6863ef66d3adb86ed64f844e346686862f
2017-02-01 09:56:09 -05:00
Mike Shal
6bbfcbc2fa Bug 1320194 - Use 'wildcard' instead of dummy rules when re-generating build backends, r=glandium
Looking into the config.status path some more, the reason we always rebuild when it is not present is because of the way I implemented missing files in bug 1242663. However, I think an alternate solution there would be to use $(wildcard) instead of creating dummy rules on every file. so if our dependency file contains:

config.status
foo
bar

The current rules do:

backend.TestManifestBackend: config.status foo bar
    re-create backend
config.status foo bar:

Since config.status is missing, make runs the empty rule to try to create it (which does nothing), but that triggers the backend.TestManifestBackend rule. With wildcard this would look like:

backend.TestManifestBackend: $(wildcard config.status foo bar)
    re-create backend

Which means make only checks dependencies on the files that actually exist (presumably foo and bar in this case, but not config.status). But when config.status is later created, we'll know to recreate the TestManifestBackend then.

MozReview-Commit-ID: 6NTTmsnxTeT

--HG--
extra : rebase_source : 737c3021cbc26074ec54eafeca203ae95c37d8b8
2017-02-10 16:29:29 -05:00
Carsten "Tomcat" Book
ed3d8d8286 merge mozilla-inbound to mozilla-central a=merge 2017-02-15 12:21:44 +01:00
Mike Hommey
885f0dae93 Bug 1339670 - Use cargo --version --verbose output when available. r=froydnj
Fallback to regexp on older versions of cargo.

--HG--
extra : rebase_source : d67c25ad48b1b23c9bb555b65e4241920914886f
2017-02-15 11:22:34 +09:00
Jesse Schwartzentruber
df40990bb3 Bug 1335411 - Fix --enable-address-sanitizer for Mac cross-compilation and adapt Linux ASan configs for Mac. r=froydnj
--HG--
extra : rebase_source : 493400a792fd50266a8d434b842710586c7947c5
2017-02-10 11:10:23 -05:00
Jan Beich
397f7a4910 Bug 1339161 - Add more rustc targets for cross-compilation. r=rillian
MozReview-Commit-ID: 5C7Bgsx2B2z

--HG--
extra : rebase_source : ee4e14091b772121f391568d21dd56ef68ac95be
2017-02-13 19:08:53 +00:00
Wes Kocher
252dae269a Merge inbound to central, a=merge
MozReview-Commit-ID: Gx7IszkCDZ4
2017-02-13 17:04:20 -08:00
Mike Shal
86c94c9187 Bug 1329355 - Remove MOZ_AUTOMATION_PRETTY*; r=ted
These automation steps are no longer relevant, since the last use of
MOZ_AUTOMATION_PRETTY was removed along with non-unified builds in bug
1121000.

MozReview-Commit-ID: 11VDu8pIs1p

--HG--
extra : rebase_source : a82b52400b73224e06e124dd10d6646d4b21a7fc
2017-01-10 11:07:13 -05:00
Ralph Giles
d9052fefa0 Bug 1337153 - Require rust 1.15.1. r=Ehsan
Bump the minimum version of the rust toolchain we require to
build. The 1.15 release includes support for custom #[derive]
directives, letting us use the serde serialization crate without
checking in a lot of generated code.

This is primarily motivated by webrender and the audio remoting
work, and lets us drop the heavy syntex dependency.

MozReview-Commit-ID: 6IObHhouPAn

--HG--
extra : rebase_source : 4be8b148fb653a48f6df4309811ab1d8755f7edf
2017-02-09 09:38:48 -08:00