diff options
author | Russell Gallop <russell.gallop@gmail.com> | 2015-04-02 15:01:53 +0000 |
---|---|---|
committer | Russell Gallop <russell.gallop@gmail.com> | 2015-04-02 15:01:53 +0000 |
commit | b9e15b2e942c004710df69f14bbcc2aa373334bf (patch) | |
tree | 55bb17d60b4b534dd113cdc95366dea962d320a7 /clang/utils/check_cfc/setup.py | |
parent | ad3ec82bb1c7217b0187a1e16bb22642e194ce94 (diff) | |
download | bcm5719-llvm-b9e15b2e942c004710df69f14bbcc2aa373334bf.tar.gz bcm5719-llvm-b9e15b2e942c004710df69f14bbcc2aa373334bf.zip |
[utils] Add Check Compile Flow Consistency tool (check_cfc.py).
This is a tool for checking consistency of code generation with different
compiler options (such as -g or outputting to .s). This tool has found a number
of code generation issues. The script acts as a wrapper to clang or clang++
performing 2 (or more) compiles then comparing the object files. Instructions
for use are in check_cfc.py including how to use with LNT.
Differential Revision: http://reviews.llvm.org/D8723
llvm-svn: 233919
Diffstat (limited to 'clang/utils/check_cfc/setup.py')
-rw-r--r-- | clang/utils/check_cfc/setup.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/clang/utils/check_cfc/setup.py b/clang/utils/check_cfc/setup.py new file mode 100644 index 00000000000..b5fc473639e --- /dev/null +++ b/clang/utils/check_cfc/setup.py @@ -0,0 +1,21 @@ +"""For use on Windows. Run with: + python.exe setup.py py2exe + """ +from distutils.core import setup +try: + import py2exe +except ImportError: + import platform + import sys + if platform.system() == 'Windows': + print "Could not find py2exe. Please install then run setup.py py2exe." + raise + else: + print "setup.py only required on Windows." + sys.exit(1) + +setup( + console=['check_cfc.py'], + name="Check CFC", + description='Check Compile Flow Consistency' + ) |