mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 02:11:19 +00:00
by default, don't use cpp when compiling the output of qfpreqcc
This commit is contained in:
parent
5a8143a9c7
commit
e7f478b197
1 changed files with 7 additions and 0 deletions
|
@ -228,6 +228,7 @@ def process_source (source_file):
|
|||
f.close ()
|
||||
|
||||
no_delete = 0
|
||||
use_cpp = 0
|
||||
i = 0
|
||||
while i < len (sys.argv):
|
||||
if sys.argv[i] == '--keep':
|
||||
|
@ -238,6 +239,10 @@ while i < len (sys.argv):
|
|||
verbose = 1;
|
||||
del sys.argv[i]
|
||||
continue
|
||||
elif sys.argv[i] == '--cpp':
|
||||
use_cpp = 1;
|
||||
del sys.argv[i]
|
||||
continue
|
||||
i = i + 1
|
||||
do_preprogs_src ()
|
||||
for s in source_list:
|
||||
|
@ -252,6 +257,8 @@ f.close ()
|
|||
args = sys.argv[1:]
|
||||
if not verbose:
|
||||
args = ["--quiet"] + args
|
||||
if not use_cpp:
|
||||
args = ["-C", "no-cpp"] + args
|
||||
args = ["qfcc"] + args
|
||||
if not os.fork():
|
||||
os.execvp ("qfcc", args)
|
||||
|
|
Loading…
Reference in a new issue