skia2/gn
Mike Klein 87c36f2302 GN: detect is_clang cheaply when possible.
Running is_clang.py is the current long-poll in `gn gen` time.
We can avoid it trivially in a few situations:
  - We always use Clang on Android, iOS, and Mac.
  - If cc and cxx are clang and clang++, it's Clang.

This cuts `gn gen` time from 80ms to 20ms on my laptop.

(Did you know gn has a --tracelog=trace.log option for creating Chrome-tracing-compatible traces?  Pretty neat.)

BUG=skia:

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4746

Change-Id: Ic81d221675e8309cc9942bb9e62243d86658b02d
Reviewed-on: https://skia-review.googlesource.com/4746
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Ben Wagner <bungeman@google.com>
2016-11-14 17:01:57 +00:00
..
android_framework_defines.gni Revert[2] "Change SkCanvas to *not* inherit from SkRefCnt" 2016-11-13 18:31:13 +00:00
ar.py GN: quiet alink spam on Mac 2016-11-07 14:19:32 +00:00
bench.gni Create .gni files for samples, tests, gms, and benches. 2016-10-27 18:14:06 +00:00
BUILD.gn GN: detect is_clang cheaply when possible. 2016-11-14 17:01:57 +00:00
BUILDCONFIG.gn GN: iOS basics 2016-11-03 19:31:50 +00:00
core.gni Initial implementation of a SkColorSpace_A2B xform 2016-11-11 15:27:39 -08:00
cp.py GN: get Angle compiling on Windows. 2016-10-17 16:16:16 +00:00
effects.gni Add SkShadowMaskFilter 2016-10-31 20:29:30 +00:00
find_headers.py Streamline skia.h construction. 2016-11-03 17:28:39 +00:00
find_ios_sysroot.py GN: iOS basics 2016-11-03 19:31:50 +00:00
gm.gni Draw Alpha8 + color filter correctly in software 2016-10-31 14:42:52 +00:00
gn_helpers.py Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
gn_to_cmake.py Add support for lib_dirs to gn_to_cmake.py. 2016-10-28 15:07:10 +00:00
gpu.gni Add GrTextureRenderTargetProxy and support switching between RT & Tex Proxies 2016-11-07 15:56:19 +00:00
gypi_to_gn.py Add executable bit and shebang to python files 2016-08-18 04:36:25 -07:00
is_clang.py GN: match shell behavior for cc and cxx in is_clang.py 2016-09-27 09:29:24 -07:00
opts.gni opts.gypi -> opts.gni 2016-10-26 23:23:09 +00:00
pdf.gni Start inverting GN reading .gypis to GYP reading .gnis. 2016-10-26 17:47:00 +00:00
samples.gni Create .gni files for samples, tests, gms, and benches. 2016-10-27 18:14:06 +00:00
shared_sources.gni opts.gypi -> opts.gni 2016-10-26 23:23:09 +00:00
sksl.gni Split SkSL and utils apart again into .gni files. 2016-10-26 18:56:37 +00:00
tests.gni Revert "Revert "Add integer texture support."" 2016-11-11 21:58:52 +00:00
utils.gni Move SkOSPath out of include/core. 2016-11-08 20:20:15 +00:00