Commit Graph

6161 Commits

Author SHA1 Message Date
Tom Ritter
7f3e0b6468 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
2017-04-26 12:08:59 -05:00
Sebastian Hengst
8fae5a0654 Backed out changeset 6eb93543bf16 (bug 1318143) for Windows build bustage. r=backout 2017-04-25 22:38:36 +02:00
Sebastian Hengst
ea0edf4b14 Backed out changeset fc094009b7c1 (bug 1318143) 2017-04-25 22:38:09 +02:00
Ted Mielczarek
1a1f0fdaf5 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
2017-04-20 12:43:44 -04:00
Ted Mielczarek
e52c55931c 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
2017-04-25 06:29:30 -04:00
Alex Gaynor
aa45499273 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
2017-04-12 13:58:22 -04:00
Kearwood Gilbert
6804dc02e9 Bug 1356382 - Move jsoncpp library and ensure it is included even when crashreporter is not r=ted
MozReview-Commit-ID: 2g9sFP6QQCU
2017-04-19 14:41:03 -07:00
Edmund Wong
7e7aeef70f 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
2017-04-21 15:43:14 +08:00
Chris Peterson
8fc602e4fd 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
2017-04-08 12:36:48 -07:00
Carsten "Tomcat" Book
467411878f Merge mozilla-central to mozilla-inbound 2017-04-20 13:03:06 +02:00
Dragana Damjanovic
f3f4db3b5c Bug 1310197 - Implement fast open nspr part. r=mcmanus,bagder 2017-04-20 14:11:26 +08:00
Tom Ritter
fff473e823 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
2017-04-19 10:18:01 -05:00
Mike Hommey
d51030340d Bug 1357323 - Remove support for gonk in the build system. r=gps
Everything depending on the widget being gonk can go away, as well as
everything depending on MOZ_AUDIO_CHANNEL_MANAGER, which was only
defined on gonk builds under b2g/ (which goes away in bug 1357326).
2017-04-18 16:56:09 +09:00
Mike Hommey
f8f43eaa83 Bug 1356927 - Use ar and ranlib from cctools on mac builds. r=gps 2017-04-17 10:36:05 +09:00
Mike Hommey
7c376a3b1d Bug 1356101 - Derive the mach_bootstrap search path from build/virtualenv_packages.txt. r=gps
Most entries in virtualenv_packages.txt that are .pth or packages.txt
are currently in SEARCH_PATHS in mach_bootstrap. The ones that are
missing would make sense in SEARCH_PATHS. None of non-.pth or
packages.txt entries, however, are in SEARCH_PATHS and don't make sense
there.

On the other hand, virtualenv_packages.txt misses a lot of things that
are in SEARCH_PATHS, all of which should be there. One exception:
xpcom/idl-parser, which causes problems due to the xpidl package
containing an xpidl module, which causes problems with the in-tree
scripts using it. Plus, it needs a cache directory, which is messy, so
it's preferable to keep it away from the virtualenv. It turns out it was
added to mach_bootstrap.py in bug 893976 for a command that was since
then removed (bug 1244736), so we can get away with removing it.

So instead of keeping those two separate lists out of sync, we replace
the SEARCH_PATHS list from mach_bootstrap with one that is derived at
runtime from the contents of virtualenv_packages.txt.

And since a .pth can't fail to install in the virtualenv, it makes no
sense to have psutil.pth defined as optional, which allows it to end up
in the mach_bootstrap search path automatically.

Finally, because we do have overlapping module names in the tree (e.g.
runtests), and mach_bootstrap's SEARCH_PATHS had a guaranteed order,
we change the order of the virtualenv_packages.txt file to match what
used to be in mach_bootstrap, and make all the pth entries use the same
file name so that the order is more guaranteed in the virtualenv too.
2017-04-14 08:19:08 +09:00
Mike Hommey
49ad2400c6 Bug 1356541 - Avoid MOZBUILD_STATE_PATH prompt on automation. r=gps 2017-04-14 20:20:52 +09:00
Mike Hommey
7a0cf9b94e Bug 1343718 - Limit artifact downloads by size rather than by number. r=chmanchester
This adds a unit test for the expected behavior, and adds the modules
from mach_bootstrap.py that are missing in the virtualenv for the test
to run.
2017-04-12 16:17:52 +09:00
Petr Sumbera
3d759d1f3d Bug 1354510 - Firefox build should recognize Solaris. r=glandium 2017-04-11 00:01:32 -07:00
Iris Hsiao
2ee1ccc503 merge mozilla-inbound to mozilla-central a=merge 2017-04-12 11:16:46 +08:00
Jim Blandy
99ad264f5f Bug 1349022 - Don't put -DTRACING in the C/C++ flags for debug builds since nobody uses it. r=glandium 2017-03-20 15:25:55 -07:00
Chris Manchester
e780b4a141 Bug 1337986 - Remove dependencies between packaging steps and buildsymbols. r=mshal,ted
These dependencies are no longer relevant now that we're dumping symbols
for individual programs and libraries during the compile tier. The
automation/buildsymbols target now corresponds to archiving the
dumped symbols, and does not modify programs and libraries.

MozReview-Commit-ID: IQYIaVoqVJN
2017-04-10 10:27:50 -07:00
Mike Shal
6de79e3c28 Bug 1337145 - Remove python components used for EME generation; r=glandium
MozReview-Commit-ID: G8OhcbStQkG
2017-04-10 13:40:03 -04:00
Carsten "Tomcat" Book
0175d8a0b6 Merge mozilla-central to mozilla-inbound 2017-04-07 15:33:03 +02:00
Mike Hommey
b743547643 Bug 1344038 - Remove --enable-gnomeui. r=karlt 2017-03-08 15:35:53 +09:00
Mike Hommey
b1a06955a6 Bug 1344038 - Remove --disable-gio. r=karlt 2017-04-05 14:06:25 +09:00
Ted Mielczarek
5feea40f5a bug 1350093 - fix sccache configuration to handle changes in the format of TASKCLUSTER_WORKER_GROUP. r=froydnj
The TASKCLUSTER_WORKER_GROUP environment variable used to contain the full
AWS availability zone, but a recent docker-worker change changed it to
be simply the AWS region, which broke sccache in taskcluster because we
were using it as part of the S3 bucket name.

MozReview-Commit-ID: 1KsfWpB4PoY
2017-04-06 12:03:14 -04:00
Ting-Yu Chou
95fbf1b924 Bug 1333003 part 4 - Package the binary of llvm-symbolizer also on Windows. r=ted
MozReview-Commit-ID: 4nhVgQTJ7Bz
2017-03-10 12:24:02 +08:00
Ting-Yu Chou
23f3f64ca9 Bug 1333003 part 1 - Add Windows x64 ASan mozconfigs to the tree. r=mshal
MozReview-Commit-ID: KuXcyL6yqH7
2017-03-10 14:13:07 +08:00
Iris Hsiao
33f7647173 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)
2017-04-06 10:35:56 +08:00
Mike Hommey
2f7cb7ae57 Bug 1344038 - Remove --enable-gnomeui. r=karlt 2017-03-08 15:35:53 +09:00
Mike Hommey
a30fe327bd Bug 1344038 - Remove --disable-gio. r=karlt 2017-04-05 14:06:25 +09:00
Mike Hommey
88c00ebb52 Bug 1353661 - Don't build elfhack/inject during export. r=mshal
When the clang plugin is used, building something during export needs to
happen after the plugin is built. But there is no dependency ensuring
this happens.

OTOH, these sources in elfhack/inject don't need to be built that early,
so we'll just leave to the build system to build it at a proper time.
2017-04-05 18:01:33 +09:00
Andrzej Hunt
b3e55202cd Bug 1338629 - Update annotation processing classpath to reflect SDK 25.3+ r=nalexander
It looks like Google decided to split these jars out a bit, so we need to piece
them all back together.

We could probably just query the sdk version instead, but I'm not 100% sure
know when this setup changed - moreover we don't know when (if?) the paths
are likely to change again. SDK 26.0 still has lint 25.3.1, so the SDK and
lint versions don't appear to be tied.

It seems that only the lint* jars are needed to compile 'build/annotationProcessor',
however we need all the remaining jars in the classpath when running that code
in 'widget/android/bindings'.

MozReview-Commit-ID: GAKwMrVXW55
2017-03-30 18:55:02 -07:00
Alessio Placitelli
561554fa17 Bug 1345153 - Suppress valgrind warnings for PR_SetEnv in SetupCrashReporterDirectory. r=njn
MozReview-Commit-ID: 4vV2EHsgTVT
2017-03-30 08:04:11 +02:00
Sylvestre Ledru
2adbe01181 Bug 1351108 - Add the onerror argument to try_compile r=glandium
MozReview-Commit-ID: 9WNcdWhmUEB
2017-03-27 23:12:56 +02:00
Ryan VanderMeulen
3866e9cf31 Merge inbound to m-c. a=merge 2017-03-29 09:41:54 -04:00
Bob Clary
2356558941 Bug 1344813 - Implement AWSY as a marionette-based mach command, r=jmaher,pyang,erahm.
usage: mach [global arguments] awsy-test [command arguments]

mach awsy-test runs the in-tree version of the Are We Slim Yet
(AWSY) tests.

awsy-test is implemented as a marionette test and marionette
test arguments also apply although they are not necessary
since reasonable defaults will be chosen.

The AWSY specific arguments can be found in the Command
Arguments for AWSY section below.

awsy-test will automatically download the tp5n.zip talos
pageset from tooltool and install it under
topobjdir/_tests/awsy/html. You can specify your own page set
by specifying --web-root and --page-manifest.

The results of the test will be placed in the results
directory specified by the --results argument.

Command Arguments for AWSY:
  --web-root WEBROOTDIR
                        Path to web server root directory. If not specified,
                        defaults to topobjdir/_tests/awsy/html.
  --page-manifest PAGEMANIFEST
                        Path to page manifest text file containing a list of
                        urls to test. The urls must be served from localhost.
                        If not specified, defaults to
                        page_load_test/tp5b/tp5n.manifest under the web root.
  --results RESULTSDIR  Path to results directory. If not specified, defaults
                        to the parent directory of the web root.
  --quick               Set --entities=3, --iterations=1, --per-tab-pause=1,
                        --settle-wait-time=1 for a quick test. Overrides any
                        explicit argument settings.
  --entities ENTITIES   Number of urls to load. Defaults to the total number
                        of urls.
  --max-tabs MAXTABS    Maximum number of tabs to open. Defaults to 30.
  --iterations ITERATIONS
                        Number of times to run through the test suite.
                        Defaults to 5.
  --per-tab-pause PERTABPAUSE
                        Seconds to wait in between opening tabs. Defaults to
                        10.
  --settle-wait-time SETTLEWAITTIME
                        Seconds to wait for things to settled down. Defaults
                        to 30.
2017-03-29 01:47:46 -07:00
Makoto Kato
bd3269c57d Bug 1283611 - Change order of include path to support NDK r13+ r=froydnj
When using NDK r13+ with part 1, the following build error still occurs when using cmath.

 0:21.01 /mozilla/android-ndk-r14b/sources/cxx-stl/llvm-libc++/include/math.h:661:105: error: 'acosl' was not declared in this scope
 0:21.01  inline _LIBCPP_INLINE_VISIBILITY long double acos(long double __lcpp_x) _NOEXCEPT {return acosl(__lcpp_x);}

To fix this, we need change the order of include path.

MozReview-Commit-ID: AZ3ebx3pAil
2017-03-27 12:11:51 +09:00
Dan Minor
bd3cf2a33a Bug 964133 - Build gflags; r=ted.mielczarik
This adds gflags to the list of ignored directories for clang static
analysis and adds "explicit" where required in mutex.h.

We also stop building a duplicate copy of snprintf for windows as our builds
already include a definition for it.


MozReview-Commit-ID: 4uMhTMvAKL0
2017-03-28 15:46:57 -04:00
Dan Albert
8f59e1d1c9 Bug 1283611 - Add support for NDK r13's libc++ paths. r=froydnj
The inner directory in these projects was removed in r13.

MozReview-Commit-ID: AxWgxXyOKJ4
2016-11-11 14:35:51 -08:00
James Graham
84690bcb99 Bug 1348585 - Add six to the mach virtualenv path. r=chmanchester
Ensure that six is available when running python-test tests, which
have the virtualenv python environment not that of the parent mach
process.

MozReview-Commit-ID: FrwzPZvMCSI
2017-03-22 16:26:22 +00:00
Wes Kocher
3095b422dc Backed out 7 changesets (bug 1333003) for windows asan failures a=backout
Backed out changeset 3d2b2eeda8d3 (bug 1333003)
Backed out changeset 400d409ba4ca (bug 1333003)
Backed out changeset 1ba027abdfc9 (bug 1333003)
Backed out changeset 70114135bd8c (bug 1333003)
Backed out changeset 5715b15e33c0 (bug 1333003)
Backed out changeset 375e952bd738 (bug 1333003)
Backed out changeset d5d4112599f2 (bug 1333003)

MozReview-Commit-ID: DZUHJTdjX7V
2017-03-23 11:01:44 -07:00
Carsten "Tomcat" Book
97bcba5d10 Merge mozilla-central to autoland 2017-03-23 13:59:20 +01:00
Ting-Yu Chou
ab657abd55 Bug 1333003 part 4 - Package the binary of llvm-symbolizer also on Windows. r=ted
MozReview-Commit-ID: 4nhVgQTJ7Bz
2017-03-10 12:24:02 +08:00
Ting-Yu Chou
f071825a06 Bug 1333003 part 1 - Add Windows x64 ASan mozconfigs to the tree. r=mshal
MozReview-Commit-ID: KuXcyL6yqH7
2017-03-10 14:13:07 +08:00
Kartikaya Gupta
af63cd9a2c Bug 1342450 - Keep webrender disabled by default on OS X buildbot builders. r=ted
MozReview-Commit-ID: 9Ydrr67qKGu
2017-03-22 17:38:10 -04:00
Carsten "Tomcat" Book
40606f3440 Backed out changeset a89806ba0faa (bug 1333003) for bustage 2017-03-23 10:38:48 +01:00
Carsten "Tomcat" Book
e1108f2cbf Backed out changeset d88370d20b83 (bug 1333003) 2017-03-23 10:38:13 +01:00
Ting-Yu Chou
e2e544aad4 Bug 1333003 part 4 - Package the binary of llvm-symbolizer also on Windows. r=ted
MozReview-Commit-ID: 4nhVgQTJ7Bz
2017-03-10 12:24:02 +08:00
Ting-Yu Chou
d55e59ad3b Bug 1333003 part 1 - Add Windows x64 ASan mozconfigs to the tree. r=mshal
MozReview-Commit-ID: KuXcyL6yqH7
2017-03-10 14:13:07 +08:00