Pass -fmsc-version=1900 to clang-cl.
This matches the Chromium build. There are some build errors when using the newer toolchain's headers. This might resolve it? clang-cl apparently claims VS2013 by default and Microsoft's headers are sensitive to this. Change-Id: Ib849e33d8a28649d981ea73972f568fd81e534a1 Reviewed-on: https://boringssl-review.googlesource.com/21244 Reviewed-by: Steven Valdez <svaldez@google.com> Commit-Queue: David Benjamin <davidben@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
This commit is contained in:
parent
3b5b87f579
commit
4519a5a063
@ -47,7 +47,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CLANG)
|
||||
set(C_CXX_FLAGS "-Wall -Werror -Wformat=2 -Wsign-compare -Wmissing-field-initializers -Wwrite-strings")
|
||||
if(MSVC)
|
||||
# clang-cl sets different default warnings than clang.
|
||||
set(C_CXX_FLAGS "${C_CXX_FLAGS} -Wno-unused-parameter")
|
||||
set(C_CXX_FLAGS "${C_CXX_FLAGS} -Wno-unused-parameter -fmsc-version=1900")
|
||||
# googletest suppresses warning C4996 via a pragma, but clang-cl does not
|
||||
# honor it. Suppress it here to compensate. See https://crbug.com/772117.
|
||||
set(C_CXX_FLAGS "${C_CXX_FLAGS} -Wno-deprecated-declarations")
|
||||
|
Loading…
Reference in New Issue
Block a user