aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn/BUILDCONFIG.gn
diff options
context:
space:
mode:
authorGravatar herb <herb@google.com>2016-09-16 13:29:57 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-16 13:29:57 -0700
commitb6318bf44dd89dc8465dcf48ba820701eae24acb (patch)
tree6ad7f01fed3c966fcdf7fcb87b66509a18f35f93 /gn/BUILDCONFIG.gn
parent3b294d5ba96b68ae1cbe59cfea29b112959cca09 (diff)
Compile the skia library for windows using gn.
TBR=mtklein@google.com BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2347443002 Review-Url: https://codereview.chromium.org/2347443002
Diffstat (limited to 'gn/BUILDCONFIG.gn')
-rw-r--r--gn/BUILDCONFIG.gn9
1 files changed, 7 insertions, 2 deletions
diff --git a/gn/BUILDCONFIG.gn b/gn/BUILDCONFIG.gn
index 79d06f400b..e294854aa7 100644
--- a/gn/BUILDCONFIG.gn
+++ b/gn/BUILDCONFIG.gn
@@ -147,5 +147,10 @@ set_defaults("component") {
}
}
-# For now, we support GCC-like toolchains, including Clang.
-set_default_toolchain("//gn:gcc_like")
+if (is_win) {
+ # Windows tool chain
+ set_default_toolchain("//gn:msvc")
+} else {
+ # GCC-like toolchains, including Clang.
+ set_default_toolchain("//gn:gcc_like")
+}