From 901018c7fd1346c5fa14a91c21c8c838365e00f9 Mon Sep 17 00:00:00 2001 From: Bertrand Bellenot Date: Tue, 6 Jul 2021 16:42:59 +0200 Subject: [PATCH] Disable the __CUDACC__ macro definition with latest Visual Studio Disable the silly workaround for cling not being able to parse the STL headers anymore after the update of Visual Studio v16.7.0. Works now with the upgrade of LLVM and Visual Studio 16.10.3. This workaround had side effects when trying to use code supporting CUDA (e.g. boost) inside the interpreter. --- lib/Interpreter/CIFactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Interpreter/CIFactory.cpp b/lib/Interpreter/CIFactory.cpp index a70ccc5b..80f29479 100644 --- a/lib/Interpreter/CIFactory.cpp +++ b/lib/Interpreter/CIFactory.cpp @@ -802,7 +802,7 @@ static void stringifyPreprocSetting(PreprocessorOptions& PPOpts, PPOpts.addMacroDef("__CLING__GNUC_MINOR__=" ClingStringify(__GNUC_MINOR__)); #elif defined(_MSC_VER) PPOpts.addMacroDef("__CLING__MSVC__=" ClingStringify(_MSC_VER)); -#if (_MSC_VER >= 1926) +#if (_MSC_VER >= 1926 AND _MSC_VER <= 1928) // FIXME: Silly workaround for cling not being able to parse the STL // headers anymore after the update of Visual Studio v16.7.0 // To be checked/removed after the upgrade of LLVM & Clang