Ticket #1670: wave.py
| File wave.py, 449 bytes (added by , 15 years ago) |
|---|
| Line | |
|---|---|
| 1 | from Emulator import get_compiler_info |
| 2 | import sys, os, subprocess |
| 3 | |
| 4 | info = get_compiler_info('C++', 'c++') |
| 5 | flags = ['-S%s'%x for x in info.include_paths] |
| 6 | flags += ['-D%s'%k + (v and '=%s'%v or '') for (k,v) in info.macros |
| 7 | if k not in ('__STDC__', '__cplusplus')] |
| 8 | flags += sys.argv[1:] |
| 9 | |
| 10 | wave = '/home/stefan/projects/boost/dist/bin/wave' |
| 11 | command = [wave, '--variadics', '--long_long'] + flags |
| 12 | |
| 13 | status = subprocess.call(command) |
| 14 | print status |
