Porting of commit
a36bd4c90dcc ("[CMake][NewPM] Move ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER into llvm/")
Fixes the following building error:
In file included from external/llvm-project/llvm/lib/LTO/LTOBackend.cpp:16:
In file included from external/llvm-project/llvm/include/llvm/LTO/LTOBackend.h:22:
In file included from external/llvm-project/llvm/include/llvm/LTO/LTO.h:22:
external/llvm-project/llvm/include/llvm/LTO/Config.h:57:19: error: use of undeclared identifier 'LLVM_ENABLE_NEW_PASS_MANAGER'
bool UseNewPM = LLVM_ENABLE_NEW_PASS_MANAGER;
^
1 error generated.
/* Define to 1 if you have the <sysexits.h> header file. */
#define HAVE_SYSEXITS_H 1
+/* Define to 1 to enable the experimental new pass manager by default */
+#define LLVM_ENABLE_NEW_PASS_MANAGER 0
+
/* Define if this is Win32ish platform */
/* #undef LLVM_ON_WIN32 */