Fix Windows compilation using GN and clang-cl.

This includes a bunch of fixes for clang warnings in Windows specific
code that was only compiled by MSVC previously. This also tidies up some
BUILD.gn issues on Windows.
This commit is contained in:
Corentin Wallez
2018-08-13 17:50:22 +02:00
committed by Corentin Wallez
parent 3bb0bb940e
commit 5b61abce09
18 changed files with 50 additions and 45 deletions

View File

@@ -24,8 +24,8 @@
// (resp. false) to help it generate code that leads to better branch prediction.
// - DAWN_UNUSED(EXPR): Prevents unused variable/expression warnings on EXPR.
// Clang and GCC
#if defined(__GNUC__)
// Clang and GCC, check for __clang__ too to catch clang-cl masquarading as MSVC
#if defined(__GNUC__) || defined(__clang__)
# if defined(__clang__)
# define DAWN_COMPILER_CLANG
# else