add -load polly.so only when not LINK_POLLY_INTO_TOOLS

llvm-svn: 203888
This commit is contained in:
Sebastian Pop 2014-03-14 04:04:36 +00:00
parent 17fac04433
commit 7537be92f4
1 changed files with 13 additions and 2 deletions

View File

@ -25,8 +25,19 @@ except KeyError,e:
key, = e.args
lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
if '@LINK_POLLY_INTO_TOOLS@' == '' or \
'@LINK_POLLY_INTO_TOOLS@'.lower() == '0' or \
'@LINK_POLLY_INTO_TOOLS@'.lower() == 'n' or \
'@LINK_POLLY_INTO_TOOLS@'.lower() == 'no' or \
'@LINK_POLLY_INTO_TOOLS@'.lower() == 'off' or \
'@LINK_POLLY_INTO_TOOLS@'.lower() == 'false' or \
'@LINK_POLLY_INTO_TOOLS@'.lower() == 'notfound' or \
'@LINK_POLLY_INTO_TOOLS@'.lower() == 'link_polly_into_tools-notfound':
config.substitutions.append(('%loadPolly', '-load '
+ config.polly_lib_dir + '/LLVMPolly@LLVM_SHLIBEXT@'))
else:
config.substitutions.append(('%loadPolly', ''))
config.substitutions.append(('%defaultOpts', ' -basicaa -polly-prepare'))
config.substitutions.append(('%polybenchOpts', ' -O3 -loop-simplify -indvars '))
config.substitutions.append(('%vector-opt', '-polly-vectorizer=polly'))