Ticket #1670: wave.py

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