12345678910111213141516171819 |
- import os, sys
- # Explicitly enable local imports
- # Don't forget to add imported scripts to inputs of the calling command!
- sys.path.append(os.path.dirname(os.path.abspath(__file__)))
- import process_command_files as pcf
- with open(sys.argv[1], 'w') as f:
- f.write('#if defined(__GNUC__)\n')
- f.write('#pragma GCC diagnostic ignored "-Wunknown-pragmas"\n')
- f.write('#if defined(__clang__)\n')
- f.write('#pragma GCC diagnostic ignored "-Wunknown-warning-option"\n')
- f.write('#endif\n')
- f.write('#pragma GCC diagnostic ignored "-Wsubobject-linkage"\n')
- f.write('#endif\n\n')
- for arg in pcf.iter_args(sys.argv[2:]):
- f.write('#include "' + arg + '"\n')
|