Issue error if unsupported version of LLVM is used.

This commit is contained in:
Matt Pharr
2011-11-29 17:25:35 -08:00
parent d65c02f323
commit e780662a3f

4
ispc.h
View File

@@ -38,6 +38,10 @@
#ifndef ISPC_H #ifndef ISPC_H
#define ISPC_H #define ISPC_H
#if !defined(LLVM_2_9) && !defined(LLVM_3_0) && !defined(LLVM_3_0svn) && !defined(LLVM_3_1svn)
#error "Only LLVM 2.9, 3.0, and the 3.1 development branch are supported"
#endif
#if defined(_WIN32) || defined(_WIN64) #if defined(_WIN32) || defined(_WIN64)
#define ISPC_IS_WINDOWS #define ISPC_IS_WINDOWS
#elif defined(__linux__) #elif defined(__linux__)