Skip to content

Commit 28e4a1b

Browse files
davidbenBoringssl LUCI CQ
authored andcommitted
Build with C11 on MSVC in the standalone Bazel build
We require MSVC 2019 now, which has a /std:c11 flag. Enable it to match the CMake build and remove a blocker for requiring C11 unconditionally. (This select branch is also used by clang-cl. I had meant to figure out the @bazel_tools business as part of this, but it turns out clang-cl works better with the MSVC flags than the GCC ones anyway. -Wall in clang-cl is like MSVC's /Wall and actually means all warnings. Ideally we'd still condition this on the compiler, in case anyone uses MinGW, but we can figure that out later.) Tested with bazelisk build :all and bazelisk build --compiler=clang-cl :all on Windows. Change-Id: I4559789a221071eef39f9d34929f0e9c5994119e Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/61127 Commit-Queue: Adam Langley <[email protected]> Auto-Submit: David Benjamin <[email protected]> Reviewed-by: Adam Langley <[email protected]>
1 parent 286ea21 commit 28e4a1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/BUILD.toplevel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ boringssl_copts = [
121121
}) + asm_copts
122122

123123
boringssl_copts_c11 = boringssl_copts + select({
124-
"@platforms//os:windows": [],
124+
"@platforms//os:windows": ["/std:c11"],
125125
"//conditions:default": gcc_copts_c11,
126126
})
127127

0 commit comments

Comments
 (0)