mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 16:37:08 +00:00
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:
committed by
Corentin Wallez
parent
3bb0bb940e
commit
5b61abce09
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user