gecko-dev/config
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
..
external Bug 1316261 - Configure trust anchors list to be empty for WebRTC, r=drno 2016-11-12 10:57:21 +11:00
faster Fix up missing dependency in bug 1247162. r=me 2016-02-12 09:44:03 +09:00
makefiles Bug 1240134 - Incorporate the interfaces.xpt from downloaded artifacts instead of building XPIDL during an artifact build. r=glandium 2016-08-17 15:02:31 -07:00
Moz
tests Bug 1293234 - Use octal notation for permission modes in the build system; r=gps 2016-08-08 13:45:17 +02:00
android-common.mk Bug 1258760 - Allow re-signing already signed APK files. r=gps 2016-03-15 16:01:44 -07:00
autoconf-js.mk.in
autoconf.mk.in
baseconfig.mk Bug 1275111 - Move artifact download/install into its own tier; r=glandium 2016-06-01 13:48:53 -04:00
check_js_msg_encoding.py Bug 1304970 - Check encoding of js.msg-like files. r=jandem,gps 2016-09-28 14:12:54 +09:00
check_macroassembler_style.py
check_source_count.py
check_spidermonkey_style.py Bug 966559 - Use public C API for NumberingSystem. r=Waldo 2016-11-01 12:15:26 -07:00
check_utils.py
check_vanilla_allocations.py
config.mk Bug 1171610 - Automatically enable color in compiler output; r=glandium 2016-11-09 14:01:24 -08:00
createprecomplete.py
doxygen.cfg.in
emptyvars-js.mk.in
emptyvars.mk.in
expandlibs_config.py
expandlibs_exec.py
expandlibs_gen.py Bug 1304815 - rearrange Rust crate structure for newer Rust releases; r=ted.mielczarek 2016-10-15 18:16:13 -04:00
expandlibs.py
find_OOM_errors.py
gcc_hidden.h
gcc-stl-wrapper.template.h Bug 1269171 - Change how mozalloc.h is hooked in STL wrappers. r=froydnj 2016-05-22 08:32:40 +09:00
install.bat
link.py Bug 1303227 - Wrap libxul.so linker to prevent getting the linking process killed; r=glandium 2016-09-20 17:58:34 -07:00
make-stl-wrappers.py Bug 1269171 - Change how mozalloc.h is hooked in STL wrappers. r=froydnj 2016-05-22 08:32:40 +09:00
Makefile.in Bug 1264534 - Create system wrappers for all declared STL headers. r=froydnj 2016-06-15 19:57:12 +09:00
milestone.txt Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2016-11-14 13:29:32 +01:00
moz.build Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
mozunit.py bug 1280326 - followup fix to make MockedOpen really case-insensitive on Windows. r=jmaher 2016-07-01 07:15:23 -04:00
MozZipFile.py
msvc-stl-wrapper.template.h Bug 1298472 - part 2 - use #include_next in STL header wrappers for clang-cl; r=glandium 2016-09-09 09:01:14 -04:00
nsinstall.c
nsinstall.py Bug 1293234 - Use octal notation for permission modes in the build system; r=gps 2016-08-08 13:45:17 +02:00
pathsub.c
pathsub.h
printconfigsetting.py
printprereleasesuffix.py
pythonpath.py
rebuild_check.py
recurse.mk Bug 1315882 - Unbreak --with-system-nspr after bug 1115944. r=glandium 2016-11-08 06:44:36 +00:00
rules.mk Bug 1315785 - Invoke cargo with --color=always when original stdout is a TTY; r=glandium 2016-11-07 13:46:15 -08:00
static-checking-config.mk Bug 1246334 - Add support for building the clang plugin using clang-cl; r=glandium 2016-02-26 07:29:48 -05:00
stl-headers Bug 1268816 - allow Skia to use C++11 features on platforms that have them. r=froydnj 2016-04-29 21:03:05 -04:00
string-format.js
system-headers Bug 1303085: Add fenv.h to the list of system-headers for rint/rintf; r=glandium 2016-09-15 21:00:03 +02:00
version_win.pl Bug 1246881 - Stop using config/buildid in few remaining places. r=mshal 2016-02-12 07:16:03 +09:00
version.mk