Commit Graph

5849 Commits

Author SHA1 Message Date
Gregory Szorc
4732e7cb34 Bug 1171610 - Automatically enable color in compiler output; r=glandium
GCC and Clang will colorize compiler output automatically if stdout is a
TTY. Unfortunately, when the build backend is invoked via `mach`,
stdout is not a TTY.

6e9a4c0b9cd8 (bug 1315785) changed mach so it exports an environment
variable indicating whether mach's original stdout is a TTY. This was
later used to add color flags to `cargo` invocations.

Building on that work, this patch adds color flags to compiler
invocations if the compiler supports color and a mach TTY is
detected. The result is that compiler output from `mach build`
will be colorized automatically if Clang or a modern version of
GCC is used.

The only issue I see with this is that Clang doesn't "unset" its color
sequences when printing a newline. As a result, mach's time line
prefixing can sometimes inherit "bold" or other stylings. AFAICT this is
only a minor cosmetic concern. GCC does not exhibit this issue.

MozReview-Commit-ID: 5Icu6aXGZBL

--HG--
extra : rebase_source : 5b2bf5a287fdf8075b3d7dde36b91f3c65b60728
2016-11-09 14:01:24 -08:00
Carsten "Tomcat" Book
8cfa5253e8 merge mozilla-inbound to mozilla-central a=merge 2016-11-15 12:26:41 +01:00
Phil Ringnalda
21a7a3eb46 Backed out changeset 6d6366a2842e (bug 1317359) for test_checks_configure.py bustage
CLOSED TREE
2016-11-14 21:36:44 -08:00
Mike Hommey
e8b62f1ea5 Bug 1317359 - Propagate MOZ_ADJUST_SDK_KEY to old-configure. r=chmanchester
--HG--
extra : rebase_source : ad7b1089d99b9c3477ef882a5664341fe648b41f
2016-11-15 07:43:39 +09:00
Wes Kocher
c71ee484aa Backed out changeset c403ebdab6b8 (bug 1317359) for build bustage a=backout CLOSED TREE
--HG--
extra : amend_source : 578c7a50c7d04c6578448d780ee06076069ee783
2016-11-14 16:48:00 -08:00
Mike Hommey
36d47d7464 Bug 1317359 - Propagate MOZ_ADJUST_SDK_KEY to old-configure. r=chmanchester
--HG--
extra : rebase_source : fb3ba7a9f158a6d0e95b748b82f1b193903a75f0
2016-11-15 07:43:39 +09:00
Mike Hommey
6fa3828b4e Bug 1316844 - Remove unused dependencies. r=chmanchester
--HG--
extra : rebase_source : f9c4f39b198fbb83aa02b2eee65863695e7b75ca
2016-11-11 12:52:37 +09:00
Ting-Yu Chou
f069d5cee1 Bug 1200740 - Import blacklist for ASan on Windows to avoid instrumenting selected sandbox functions and files. r=glandium
MozReview-Commit-ID: DJJuD0dyyKz

--HG--
extra : rebase_source : 803a3136f1ff163fe3237a0ac157bffa1eef0873
2016-11-10 09:18:55 +08:00
David Major
a70b85d44a Bug 1317471: Add the sandbox's interceptors_64.cc to Windows ASan blacklist. r=froydnj DONTBUILD
For the same reason as bug 1200740#c0: this code runs before ASan initializes shadow memory.

MozReview-Commit-ID: 9fIB6tyfSEl
2016-11-14 16:43:51 -06:00
Wes Kocher
f6f88173df Backed out changeset 2b174353e76a (bug 1316957) at glandium's request a=backout 2016-11-11 18:58:24 -08:00
Mike Hommey
fb3661afd7 Bug 1316957 - Include windows.configure conditionally instead of using @depends_win. r=chmanchester
--HG--
extra : rebase_source : ae9d0b364d11e351735d731c33757fb6f30f1bfa
2016-11-12 06:05:07 +09:00
Ralph Giles
8b80e11ff1 Bug 1316477 - Mention adding extern crate references. r=froydnj
MozReview-Commit-ID: G1DxiQ410W1

--HG--
extra : rebase_source : a6432048f5b8134e0715ed9ff42cbb9be6b60b0a
2016-11-09 18:30:03 -08:00
Julian Seward
22f11f7224 Bug 1309851 - Fix "Intermittent valgrind-test | Valgrind timed out (reached 1800 second limit)". r=n.nethercote@gmail.com. 2016-11-10 11:25:19 +01:00
Emanuel Hoogeveen
e0a81d7503 Bug 1309573 - Part 2: Define MOZ_HAS_MOZGLUE in various places so that the crash reason gets used. r=glandium
--HG--
extra : rebase_source : d55e8dd75469759f333366bdf9662178ff0a2474
2016-11-08 03:53:00 -05:00
Phil Ringnalda
06521a66a4 Merge m-c to m-i
MozReview-Commit-ID: 7W5SwSOspcB
2016-11-04 21:04:44 -07:00
Gregory Szorc
abb5076523 Bug 1315330 - Enable sccache for autoland; r=ted
This should have been done when autoland came into existence.

MozReview-Commit-ID: HaWNq41mDvn

--HG--
extra : rebase_source : 1f8905a45388a147970b65d6d7e226600cf8afc2
2016-11-04 11:49:20 -07:00
Gregory Szorc
0739e582b1 Bug 1315330 - Remove references to fx-team; r=ted
fx-team is read only. We shouldn't be performing any more builds. The
configuration can be removed.

MozReview-Commit-ID: 3cbEnnOKwaZ

--HG--
extra : rebase_source : 1e3b69721f0615327c3882767f0b90ee10bce1cf
2016-11-04 11:47:51 -07:00
André Bargull
fb59f826a3 Bug 1299615 - Part 2: Skip ICU source directory in Clang build plugin when searching for implicit conversion constructors. r=Waldo, r=mystor 2016-11-03 05:45:39 -07:00
Phil Ringnalda
c9fdc270b6 Merge m-c to autoland
--HG--
rename : dom/media/webaudio/compiledtest/TestAudioEventTimeline.cpp => dom/media/webaudio/gtest/TestAudioEventTimeline.cpp
2016-11-03 20:02:24 -07:00
Phil Ringnalda
0f32b67e2d Merge m-i to m-c, a=merge
MozReview-Commit-ID: Hm1RxN6OaoZ
2016-11-03 19:32:48 -07:00
Mike Hommey
17153e5c27 Bug 1314894 - Avoid path changes from b6be0e9e3e1e. r=chmanchester
Importing 'os' in python configure functions, on Windows, changes the
separate the various os.path functions use, and that can have
unexpected, badly handled, consequences. While on the long term, it is
desirable to make @imports('os') modify os.path to use the same base
functions as if there were no @imports, let's go with the simpler
workaround of restoring the non-{isfile,isdir,exists} os.path functions
from b6be0e9e3e1e.

--HG--
extra : rebase_source : a1857b5dce2aa818c72a77d0d9727ac6ce16cb8f
2016-11-04 06:50:43 +09:00
Phil Ringnalda
45c34d7e95 Merge m-c to autoland 2016-11-02 20:03:20 -07:00
Phil Ringnalda
393b414467 Merge m-i to m-c, a=merge
MozReview-Commit-ID: 48WAQwKUCpw
2016-11-02 19:28:38 -07:00
Ralph Giles
efaa5037bb Bug 1266792 - Target armv7 android. r=kinetik,snorp
We actually target armv7, so we need this distinct triple
with the rust toolchain, while it's implicit with the
android ndk.

MozReview-Commit-ID: LUwdpOaWB6M

--HG--
extra : rebase_source : 820de90d0844e1519f9e02a583c8cc3abf1dfdc0
2016-10-27 12:19:59 -07:00
James Willcox
4f49c48da4 Bug 1309594 - Fix typo in Android build-tools detection r=sebastian
Patch from volker.mische@gmail.com
2016-10-31 13:15:00 +01:00
Wes Kocher
df5dbf81cc Merge central to inbound a=merge 2016-11-02 17:31:08 -07:00
Mike Hommey
900e53b021 Bug 1293675 - Error out when GetShortPathName returns a long path name. r=gps
--HG--
extra : rebase_source : fa95f8a1356009c44b33701b76d878e75fba7324
2016-11-01 08:06:40 +09:00
Mike Hommey
6a5969b4b1 Bug 1311462 - Dump symbols from */dist/bin instead of dist/universal for Mac universal builds. r=ted
--HG--
extra : rebase_source : 43f8a83a616f7bb825e5e2d2cddf67e868b287ad
2016-11-01 14:05:27 +09:00
Mike Hommey
be15eb6990 Bug 1313306 - Remove --help dependencies from @dependable and delayed_getattr. r=chmanchester
This sadly requires to replace a few @dependendable to pass the lint
check.

--HG--
extra : rebase_source : e0fd1c6f104076ea9f2c3474aadb7bebdf9a7fd8
2016-10-27 15:00:51 +09:00
Mike Hommey
b89b671cc8 Bug 1313306 - Don't expose os.path.{exists,isdir,isfile} to python configure without an @imports. r=chmanchester
We want functions without an @imports to not have any side effects, and
to not use external resources. So remove the few functions we expose from
os.path without @imports('os') that do.

--HG--
extra : rebase_source : a9485ec269d4de5785d66d7772eda4fae5a84b4a
2016-10-26 11:49:58 +09:00
Phil Ringnalda
4880541dd8 Backed out changeset 6c105cd2bf71 (bug 1293675) for Windows failures in test_checks_configure.py 2016-10-31 18:46:00 -07:00
Mike Hommey
bd70f6640e Bug 1293675 - Error out when GetShortPathName returns a long path name. r=gps
--HG--
extra : rebase_source : b871d4527cdba54ec1764fe99cef1261bf09d868
2016-11-01 08:06:40 +09:00
David Major
81eeceed59 Bug 1313394 - Update build system to support 64-bit ASan DLLs. r=ted 2016-10-28 16:52:36 -05:00
Ted Mielczarek
9d1a87f0db bug 1313448 - Add documentation for adding Rust code to the build system. r=froydnj
MozReview-Commit-ID: IpblCfAKwrL

--HG--
extra : rebase_source : cc9ccadc77da20c4043a26bec297d9764a807015
2016-10-27 15:25:40 -04:00
Randell Jesup
35232de3ba Bug 1311397: fix DataChannel logging for mochitests/etc r=erahm 2016-10-28 03:25:10 -04:00
Geoff Brown
094fe98143 Bug 1309436 - Add test name to java-exception failure messages; r=ted 2016-10-26 11:31:41 -06:00
Nathan Froyd
d4c390f1b6 Bug 1306650 - part 14 - correct tar package substitution for new taskcluster scheme; r=ehsan
Taskcluster builds live in a different place than our buildbot builds did.
2016-10-26 16:18:23 -04:00
Nathan Froyd
18f9b40c4a Bug 1306650 - part 13 - update clang-cl revision to something that builds OK with ASan and MSVC2015u3; r=ehsan
Newer clang-cl is more better.
2016-10-26 16:18:23 -04:00
Nathan Froyd
c807e45845 Bug 1306650 - part 12 - explicitly select MSVC version for clang-cl to emulate in stage 2+; r=ehsan
clang-cl would normally derive its MSVC emulation bits from the
installed MSVC version, but we don't have an installed MSVC in this
scenario, so we have to use command-line options instead.  We use
similar options for Gecko builds.
2016-10-26 16:18:23 -04:00
Nathan Froyd
a892fb7aa8 Bug 1306650 - part 11 - use a relative path for the build directory on windows; r=ehsan
In a taskcluster world, we cannot used fixed directories, since we don't
know the absolute path of the directory we're building in ahead of time.
(We could pass it in to the build script, or discover it in the script
itself, but that wouldn't really solve the next problem.)  This change
does make the builds not reproducible, but as we're using clang-cl
purely for secondary purposes on Windows, rather than for shipping
Firefox binaries (as we would on Mac, say), I don't feel bad about
punting the reproducibility issue down the road a bit.
2016-10-26 16:18:23 -04:00
Nathan Froyd
fbd004815c Bug 1306650 - part 10 - slashify paths for cmake; r=ehsan
Due to CMake oddities, we need to escape whatever paths we pass in here.
2016-10-26 16:18:23 -04:00
Nathan Froyd
4fac2b0c3c Bug 1306650 - part 9 - add CMAKE_ASM_COMPILER to cmake invocation; r=ehsan
CMake is unhappy if we don't provide this piece of information.
2016-10-26 16:18:23 -04:00
Nathan Froyd
e50de2e11f Bug 1306650 - part 8 - run svn {co,up} with the -q flag; r=ehsan
This change makes the build somewhat less noisy and somewhat faster, by
virtue of not having to print out all the status messages.
2016-10-26 16:18:23 -04:00
Nathan Froyd
27dc2c9c56 Bug 1306650 - part 5 - modify clang-cl toolchain config to look for just cl.exe; r=ehsan
We cannot depend on a fixed location for cl.exe in a taskcluster world.
We therefore need to make our build-clang.py script accomodate relative
path names for cc/cxx and assume those are binaries that should be
looked up on PATH.

We also need to modify the Linux build script so that the virtualenv is
used to look up the new 'which' package.
2016-10-26 16:18:24 -04:00
Phil Ringnalda
435a27119b Merge m-c to m-i
MozReview-Commit-ID: 8nqgw9Q3gSY
2016-10-25 22:07:07 -07:00
Chris Manchester
f63cec632c Bug 1305145 - Move --enable-tree-freetype to Python configure. r=glandium
This commit also removes the option, as it's only known to work
on Android, where it is the default.

MozReview-Commit-ID: JqdC5Q5dwQH
2016-10-14 11:06:31 -07:00
Chris Manchester
95f73bebb9 Bug 1305145 - Make libs and flags set by pkg_check_modules available to the caller. r=glandium
MozReview-Commit-ID: 7uZheAOXKwE
2016-10-14 11:06:30 -07:00
Chris Manchester
b09b78a7c5 Bug 1298740 - Populate Python environment with variables from mozconfig. r=glandium
MozReview-Commit-ID: KDCoxxh37Um
2016-10-14 11:06:30 -07:00
Mike Hommey
8ddc508e1d Bug 1263876 - Improve python configure handling of toolchain prefix. r=chmanchester
The toolchain checks are now such that we can stop special casing x86-64
<-> x86 cross compiling. OTOH, depending on the target, the toolchain
prefix can be of the form `cpu-os` or `cpu-machine-os`. We were only
using the former, and we change this to allow to try both.
Finally, the toolchain prefix being a gcc thing, it applies on all
target platforms where we try to use gcc.

However, the status quo is kept for the value of TOOLCHAIN_PREFIX
exposed to old-configure and the build system, until the various tools
paths (such as ar, readelf, etc.) are handled in python configure.

--HG--
extra : rebase_source : 1fe2e0708e317f061a03e2b4f058bbd08b5525f1
2016-10-21 07:50:40 +09:00
Mike Hommey
513e313d64 Bug 1311761 - Fixup after bug 1311069. r=chmanchester
--HG--
extra : rebase_source : 3ec168fd8d6cd67583718d3c2c7849e053428f08
2016-10-21 06:15:38 +09:00