Commit 7a0ca4ea by Nicolas Capens Committed by Nicolas Capens

Check that MSan builds use Clang

Bug: b/155148722 Change-Id: Idd8a9109eebaa436eee69eddde9a399402fe5119 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/50808 Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarAntonio Maiorano <amaiorano@google.com> Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent c16dc710
...@@ -520,6 +520,11 @@ else() ...@@ -520,6 +520,11 @@ else()
set_cpp_flag("-fomit-frame-pointer" RELEASE) set_cpp_flag("-fomit-frame-pointer" RELEASE)
if(SWIFTSHADER_MSAN) if(SWIFTSHADER_MSAN)
if(NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
message(FATAL_ERROR " \n"
" MemorySanitizer usage requires compiling with Clang.")
endif()
if(NOT DEFINED ENV{SWIFTSHADER_MSAN_INSTRUMENTED_LIBCXX_PATH}) if(NOT DEFINED ENV{SWIFTSHADER_MSAN_INSTRUMENTED_LIBCXX_PATH})
message(FATAL_ERROR " \n" message(FATAL_ERROR " \n"
" MemorySanitizer usage requires an instrumented build of libc++.\n" " MemorySanitizer usage requires an instrumented build of libc++.\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment