pike.git
/
NT
/
tools
/
rntcl
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/NT/tools/rntcl:33:
string remove_ext(string file) { sscanf(file=reverse(file),"%*s.%s",file,file); return reverse(file); } int main(int argc, string *argv) {
+
string *ldopts=({});
string *cflags=({ "-Zm300", "-F8388608", "-Ge", "-D__WIN32__", "-D_WIN32", "-D__NT__", // "-D__STDC__", "-nologo", });
pike.git/NT/tools/rntcl:71:
({"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++;
+
ldopts+=({"-VERBOSE:lib"});
break; case "export": // fixme // ldopts+=({"export",option[1]+"_"}); break; case "share": // fixme share=1; target="dll"; break;
pike.git/NT/tools/rntcl:222:
if(output) rm(output); array(string) cmd=({"cl"})+cflags; switch(target) { case "exe": case "dll": if(debug) {
-
cmd+
=({
-
"-link",
+
array libs
=({
"libc.lib","libcd.lib",
+
"
libcmt.lib","libcmtd.lib",
+
"msvcrt.lib","msvcrtd.lib"});
+
+
string lib=(debug?"libcmtd.lib":"libcmt.lib");
+
libs
-
=({ lib });
+
for(int e=0;e<sizeof(libs);e++)
+
ldopts+=({"-nodefaultlib:"+libs[e]});
+
+
+
cmd+=({"-
link",
// "-PDB:NONE", "-DEBUGTYPE:BOTH", "-DEBUG",
-
});
+
})
+
+ldopts
;
} }
-
+
int ret; if(verbose && target!="-") ret=do_cmd(cmd); else ret=silent_do_cmd(cmd); if(ret) { werror("CL returned error code %d.\n",ret);