gen_join_srcs.py 515 B

12345678910111213141516
  1. import sys
  2. import process_command_files as pcf
  3. with open(sys.argv[1], 'w') as f:
  4. f.write('#if defined(__GNUC__)\n')
  5. f.write('#pragma GCC diagnostic ignored "-Wunknown-pragmas"\n')
  6. f.write('#if defined(__clang__)\n')
  7. f.write('#pragma GCC diagnostic ignored "-Wunknown-warning-option"\n')
  8. f.write('#endif\n')
  9. f.write('#pragma GCC diagnostic ignored "-Wsubobject-linkage"\n')
  10. f.write('#endif\n\n')
  11. for arg in pcf.iter_args(sys.argv[2:]):
  12. f.write('#include "' + arg + '"\n')