forked from OSchip/llvm-project
add -load polly.so only when not LINK_POLLY_INTO_TOOLS
llvm-svn: 203888
This commit is contained in:
parent
17fac04433
commit
7537be92f4
|
@ -25,8 +25,19 @@ except KeyError,e:
|
|||
key, = e.args
|
||||
lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
|
||||
|
||||
config.substitutions.append(('%loadPolly', '-load '
|
||||
+ config.polly_lib_dir + '/LLVMPolly@LLVM_SHLIBEXT@'))
|
||||
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'))
|
||||
|
|
Loading…
Reference in New Issue