forked from OSchip/llvm-project
Fix build since llvm r286566 and require at least llvm 4.0
llvm-svn: 286634
This commit is contained in:
parent
e477a0e5ec
commit
088faab429
|
@ -69,8 +69,8 @@ llvm_version = string.split(string.replace(llvm_config(['--version']), 'svn', ''
|
|||
llvm_int_version = int(llvm_version[0]) * 100 + int(llvm_version[1]) * 10
|
||||
llvm_string_version = 'LLVM' + llvm_version[0] + '.' + llvm_version[1]
|
||||
|
||||
if llvm_int_version < 390:
|
||||
print "libclc requires LLVM >= 3.9"
|
||||
if llvm_int_version < 400:
|
||||
print "libclc requires LLVM >= 4.0"
|
||||
sys.exit(1)
|
||||
|
||||
llvm_system_libs = llvm_config(['--system-libs'])
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include "llvm/Bitcode/ReaderWriter.h"
|
||||
#include "llvm/Bitcode/BitcodeReader.h"
|
||||
#include "llvm/Bitcode/BitcodeWriter.h"
|
||||
#include "llvm/IR/Function.h"
|
||||
#include "llvm/IR/GlobalVariable.h"
|
||||
#include "llvm/IR/LLVMContext.h"
|
||||
|
|
Loading…
Reference in New Issue