mirror of
https://git.freebsd.org/ports.git
synced 2025-06-14 09:10:32 -04:00
C-Vise is a tool that takes a large C, C++ or OpenCL program that has a property of interest (such as triggering a compiler bug) and automatically produces a much smaller C/C++ or OpenCL program that has the same property. It is intended for use by people who discover and report bugs in compilers and other tools that process C/C++ or OpenCL code. WWW: https://github.com/marxin/cvise
11 lines
504 B
Python
11 lines
504 B
Python
--- cvise.py.orig 2022-02-13 16:58:05 UTC
|
|
+++ cvise.py
|
|
@@ -283,7 +283,7 @@ if __name__ == '__main__':
|
|
script = None
|
|
if args.commands:
|
|
with tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.sh') as script:
|
|
- script.write('#!/bin/bash\n\n')
|
|
+ script.write('#!%%LOCALBASE%%/bin/bash\n\n')
|
|
script.write(args.commands + '\n')
|
|
os.chmod(script.name, 0o744)
|
|
logging.info('Using temporary interestingness test: %s' % script.name)
|