pike.git
/
NT
/
tools
/
rntcc
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/NT/tools/rntcc:89:
({"define",Getopt.HAS_ARG, ({"-D"}) }), ({"undefine",Getopt.HAS_ARG, ({"-U"})}), ({"output",Getopt.HAS_ARG, ({"-o"}) }), ({"export",Getopt.HAS_ARG, ({"--export"}) }) )); foreach(opts, mixed *option) { switch(option[0]) { case "verbose":
-
verbose=1
;
+
verbose++
;
break; case "export": ldopts+=({"export",option[1]+"_"}); break; case "share": share=1; ldopts=({"SYSTEM","nt_dll","initinstance","terminstance"})+ldopts; cflags+=({"-bd"}); break; case "oper_pre": operation="preprocess"; break; case "oper_comp": operation="compile"; break; case "debug":
-
cflags+=({"-d2"});
-
// ldopts+=({"DEBUG","
CODEVIEW
","ALL"});
-
ldopts+=({"DEBUG","CODEVIEW","OPTION","CVPACK"});
+
//
cflags+=({"-d2"});
+
//
ldopts+=({"DEBUG","
WATCOM
","ALL"});
+
+
cflags+=({"-d2","-hd"});
+
ldopts+=({"DEBUG","
DWARF"});
+
+
// cflags+=({"-d2","-hc"});
+
// ldopts+=({"DEBUG","
CODEVIEW","OPTION","CVPACK"});
debug=1; break; case "optimize": if(!option[1]) option[1]=1; switch(optimize=(int)option[1]) { case 0: optimize=0; break; case 1: cflags+=({"-ox"}); break;
-
case 2..: cflags+=({"-
otexan
"}); break;
+
case 2
: cflags+=({"-otexan"}); break;
+
case 3
..:
+
cflags+=({"-
s
"
,
+
"-oe="+(optimize*30),
+
"-ol+",
+
"-oabhikmnrt"
});
+
break;
} break; case "include": // Avoid searching 'local' include dirs. // This is not a very pretty solution. if(sscanf(option[1],"/usr/include/%*s") || sscanf(option[1],"/usr/local/%*s")) break;
pike.git/NT/tools/rntcc:208:
sources+=({tmp}); } } if(output) rm(output); string errorfile="TMP"+getpid()+".err"; rm(errorfile); // Flags required to make the compiler behave well
-
cflags+=({"-bm","-zq","-
hc
","-
sg
"});
+
cflags+=({"-bm","-zq","-
sg
","-
5
"
,"-fpi87","-fp3"
});
switch(operation) { default: werror("Unknown operation "+operation+".\n"); exit(1); case "compile": compile(sources,output,errorfile,cflags); break;