diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2011-07-06 18:04:59 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2011-07-06 18:04:59 +0000 |
commit | fe37f8d0ac121cac7ef0764b28ef73fa81b31d9b (patch) | |
tree | 23e069ee15972719d068c97bb1be51ed5b45948c | |
parent | 6aac575c9f63c5497a2b50c1edefd1fbe8a7a976 (diff) | |
download | bcm5719-llvm-fe37f8d0ac121cac7ef0764b28ef73fa81b31d9b.tar.gz bcm5719-llvm-fe37f8d0ac121cac7ef0764b28ef73fa81b31d9b.zip |
pollycc: Fix error message if PoCC/Pluto are not available
llvm-svn: 134512
-rwxr-xr-x | polly/utils/pollycc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/polly/utils/pollycc b/polly/utils/pollycc index 7c3bb2b7ff3..9da1791659d 100755 --- a/polly/utils/pollycc +++ b/polly/utils/pollycc @@ -351,7 +351,7 @@ def createOutputFiles(assemblyFiles, args): subprocess.call(commandLine) -def checkExecutables(pollyLib): +def checkExecutables(pollyLib, pluto): commandLine = ['opt', '-load', pollyLib, '-help'] try: proc = subprocess.Popen(commandLine, stdout=subprocess.PIPE, @@ -361,8 +361,9 @@ def checkExecutables(pollyLib): if not stdout_value.count('polly-prepare'): sys.exit('Polly support not available in opt') - if not stdout_value.count('polly-optimize'): - sys.exit('Polly compiled without POCC/Pluto support') + if pluto and not stdout_value.count('Optimize the scop using pocc'): + sys.exit('Polly compiled without POCC/Pluto support. -ftile and -fpluto' + ' will not work.') except OSError: print 'error: opt cannot be executed: ' print 'failing command: \n' + " ".join(commandLine) @@ -393,7 +394,7 @@ def main(): pollyLib = os.environ['LIBPOLLY'] - checkExecutables(pollyLib) + checkExecutables(pollyLib, args.fpluto) assemblyFiles = createAssemblyFiles(args.files, args, pollyLib) createOutputFiles(assemblyFiles, args) |