ports/devel/cvise/files/patch-cvise.py
Steve Wills 6b4cb31396 devel/cvise: create port
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
2022-02-13 12:59:46 -05:00

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)