pike.git
/
NT
/
tools
/
rntcl
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/NT/tools/rntcl:47:
"-F8388608", "-Ge", "-D__WIN32__", "-D_WIN32", "-D__NT__", // "-D__STDC__", "-nologo", }); string target="exe";
-
int debug,optimize,share;
+
int debug,optimize,share
,dynamic
;
string output, wantfile; mixed *opts=Getopt.find_all_options(argv, aggregate( ({"oper_pre",Getopt.NO_ARG, ({"-E"}) }), ({"oper_comp",Getopt.NO_ARG, ({"-c"}) }), ({"verbose",Getopt.NO_ARG, ({"-v"}) }), ({"debug",Getopt.MAY_HAVE_ARG, ({"-g"}) }), ({"optimize",Getopt.MAY_HAVE_ARG, ({"-O"}) }), ({"include",Getopt.HAS_ARG, ({"-I"}) }), ({"link",Getopt.HAS_ARG, ({"-l"}) }), ({"share",Getopt.MAY_HAVE_ARG, ({"-s"}) }), ({"ignore",Getopt.MAY_HAVE_ARG, ({"-t"}) }),
-
({"
ignore
",Getopt.HAS_ARG, ({"-
R
","-
L
","-
r
"}) }),
+
({"
dynamic
",Getopt.HAS_ARG, ({"-
r
"
}) })
,
+
({
"
ignore",Getopt.HAS_ARG, ({"
-
R
","-
L
"}) }),
({"warn",Getopt.MAY_HAVE_ARG, ({"-W"}) }), ({"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 "dynamic":
+
dynamic++;
+
ldopts+=({
+
"-DELAY:nobind",
+
"-OPT:noref" // This might not be required
+
});
+
break;
case "verbose": verbose++; ldopts+=({"-VERBOSE:lib"}); break; case "export": // fixme // ldopts+=({"export",option[1]+"_"}); break; case "share": // fixme
pike.git/NT/tools/rntcl:265:
default: if(sizeof(ldopts)) cmd+=({"-link" }) +ldopts; break; } int ret; if(verbose && target!="-") {
-
//
werror("
Doing:
%s\n",cmd*" ");
+
werror("
%s\n",cmd*" ");
ret=do_cmd(cmd); }else{ int first_line=1; // cl.exe echoes the file name of the file we are compiling // first, we need to get rid of that to make configure behave ret=silent_do_cmd(cmd, lambda(string line) { if(first_line) { array x=line/"\n";