From c722f79b6c8919e1a8a0df6d4d7735c5a8a1b5e8 Mon Sep 17 00:00:00 2001 From: Mike Klein Date: Mon, 31 Jul 2017 11:57:21 -0400 Subject: clang on windows support 1) Run python bin/fetch-clang-win 2) Set clang_win = "../bin/clang_win" 3) ??? 4) Profit Most changes here are to pass the right -mfoo flags to Clang to enable advanced instruction sets, or fixed warning-as-errors. BUG=skia:2679 Change-Id: Ieed145d35c209131c7c16fdd3ee11a3de4a1a921 Reviewed-on: https://skia-review.googlesource.com/28740 Reviewed-by: Ben Wagner Commit-Queue: Mike Klein --- gn/BUILDCONFIG.gn | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'gn/BUILDCONFIG.gn') diff --git a/gn/BUILDCONFIG.gn b/gn/BUILDCONFIG.gn index 43f66f8832..ca91c1bcb3 100644 --- a/gn/BUILDCONFIG.gn +++ b/gn/BUILDCONFIG.gn @@ -23,6 +23,7 @@ declare_args() { cxx = "c++" msvc = 2015 + clang_win = "" } declare_args() { is_debug = !is_official_build @@ -68,6 +69,16 @@ if (current_cpu == "") { current_cpu = target_cpu } +is_clang = is_android || is_ios || is_mac || (cc == "clang" && cxx == "clang++") || clang_win != "" +if (!is_clang && !is_win) { + is_clang = exec_script("gn/is_clang.py", + [ + cc, + cxx, + ], + "value") +} + if (is_android) { ndk_host = "" ndk_target = "" -- cgit v1.2.3