mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-10 01:55:08 +00:00
b9e15b2e94
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
22 lines
520 B
Python
22 lines
520 B
Python
"""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'
|
|
)
|