pike.git / NT / tools / rntcc

version» Context lines:

pike.git/NT/tools/rntcc:64:    ({"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"}) }),    ({"warn",Getopt.MAY_HAVE_ARG, ({"-W"}) }),    ({"define",Getopt.HAS_ARG, ({"-D"}) }),    ({"undefine",Getopt.HAS_ARG, ({"-U"})}), -  ({"output",Getopt.HAS_ARG, ({"-o"}) }) +  ({"output",Getopt.HAS_ARG, ({"-o"}) }), +  ({"export",Getopt.HAS_ARG, ({"--export"}) })    }));    foreach(opts, mixed *option)    {    switch(option[0])    { -  +  case "export": +  ldopts+=({"export",option[1]+"_"}); +  break; +     case "share":    share=1; -  ldopts+=({"SYS","nt_dll"}); +  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","WATCOM","ALL"});    debug=1;    break;
pike.git/NT/tools/rntcc:194:    rm(ldfile);       target=output;    if(!share) target+=".exe";       Stdio.write_file(ldfile,    "NAME "+target+" " +ldopts*" "+" "+    "FIL "+Array.map(objects,fixpath)*","+" "+    libraries*" "+" ");    + #if 0 +  Process.system("cat "+ldfile); +  write("\n"); + #endif +     do_cmd( ({"wlink","@"+ldfile }), lambda(string data)    {    if(search(data," W1008:")!=-1)    exit(1);    });       if(getenv("CLEANUP")!="no")    rm(ldfile);    }