mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 03:32:28 +00:00 
			
		
		
		
	print a warning. Now that the CMake files have been moved into their intended location it is no longer necessary for this script to exist. However we do not want to break out-of-tree scripts that build Z3 using CMake to suddenly break. So the script has been modified to do nothing except print a warning. Eventually we should remove this script.
		
			
				
	
	
		
			48 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			Python
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			Python
		
	
	
		
			Executable file
		
	
	
	
	
| #!/usr/bin/env python
 | |
| """
 | |
| This script is an artifact of compromise that was
 | |
| made when the CMake build system was first introduced
 | |
| (see #461).
 | |
| 
 | |
| This script now does nothing. It remains only to not
 | |
| break out-of-tree scripts that build Z3 using CMake.
 | |
| 
 | |
| Eventually this script will be removed.
 | |
| """
 | |
| import argparse
 | |
| import logging
 | |
| import os
 | |
| import pprint
 | |
| import shutil
 | |
| import sys
 | |
| 
 | |
| def main(args):
 | |
|   logging.basicConfig(level=logging.INFO)
 | |
|   parser = argparse.ArgumentParser(description=__doc__)
 | |
|   parser.add_argument('mode',
 | |
|     choices=['create', 'remove'],
 | |
|     help='The mode to use')
 | |
|   parser.add_argument("-l","--log-level",
 | |
|     type=str,
 | |
|     default="info",
 | |
|     dest="log_level",
 | |
|     choices=['debug','info','warning','error']
 | |
|   )
 | |
|   parser.add_argument("-H", "--hard-link",
 | |
|     action='store_true',
 | |
|     default=False,
 | |
|     dest='hard_link',
 | |
|     help='When using the create mode create hard links instead of copies'
 | |
|   )
 | |
|   pargs = parser.parse_args(args)
 | |
| 
 | |
|   logLevel = getattr(logging, pargs.log_level.upper(),None)
 | |
|   logging.basicConfig(level=logLevel)
 | |
|   logging.warning('Use of this script is deprecated. The script will be removed in the future')
 | |
|   logging.warning('Action "{}" ignored'.format(pargs.mode))
 | |
|   if pargs.hard_link:
 | |
|     logging.warning('Hard link option ignored')
 | |
|   return 0
 | |
| 
 | |
| if __name__ == '__main__':
 | |
|   sys.exit(main(sys.argv[1:]))
 |