Skip to content

Commit

Permalink
Merge pull request #6255 from brave/maxk-fix-x86-10.0.19041-winsdk-1.…
Browse files Browse the repository at this point in the history
…12.x

Fixes 32-bit Windows build with 10.0.19041 SDK (1.12.x).
  • Loading branch information
bsclifton authored Jul 30, 2020
2 parents 7e75059 + d9e486c commit 6f1e0a8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions patches/build-config-win-BUILD.gn.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/build/config/win/BUILD.gn b/build/config/win/BUILD.gn
index 7b44f0e4372f45cb4606e909c934e93d48ea0e61..bd5f8a8edea4208713630329ac5b116a36f86796 100644
--- a/build/config/win/BUILD.gn
+++ b/build/config/win/BUILD.gn
@@ -82,6 +82,10 @@ config("compiler") {
# Don't look for includes in %INCLUDE%.
cflags += [ "/X" ]

+ # Required to make the 19041 SDK compatible with clang-cl.
+ # See https://crbug.com/1089996 issue #2 for details.
+ cflags += [ "/D__WRL_ENABLE_FUNCTION_STATICS__" ]
+
# Tell clang which version of MSVC to emulate.
cflags += [ "-fmsc-version=1916" ]

0 comments on commit 6f1e0a8

Please sign in to comment.