mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-01 08:47:42 +00:00
Fix compiling with clang-cl inside a Visual Studio 2019 16.4 command prompt.
This was introduced by 0d17410e919124b3a9194b9bdbe2ce39dd779941 and was preventing from compiling with clang-cl on Windows. The problem was that clang-cl detects the triple from the current env vars (was x86_64-pc-windows-msvc19.24.28315 for me, as I happen to always run inside a VS2019 cmd prompt).
This commit is contained in:
parent
a0f7cbdb76
commit
a8f8095d01
@ -25,11 +25,11 @@
|
||||
#if defined(_MSC_VER)
|
||||
#include <sal.h>
|
||||
|
||||
#if _MSC_VER == 1924
|
||||
#if _MSC_VER == 1924 && !defined(__clang__)
|
||||
// See https://developercommunity.visualstudio.com/content/problem/845933/miscompile-boolean-condition-deduced-to-be-always.html
|
||||
// and thread "[llvm-dev] Longstanding failing tests - clang-tidy, MachO, Polly"
|
||||
// on llvm-dev Jan 21-23 2020.
|
||||
#error "MSVC 19.24 version of MSVC is known to miscompile LLVM."
|
||||
#error "MSVC 19.24 (Visual Studio 2019 version 16.4) is known to miscompile LLVM. Please upgrade to version 16.5+ or use clang-cl."
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user