Branch: Tag:

2000-08-01

2000-08-01 13:40:06 by Henrik Grubbström (Grubba) <grubba@grubba.org>

The generated "binary" now looks at the CROSSCOMPILING environment variable.
This is to avoid the annoying requester that appears on an NT4 machine when
you try to run an IA64 binary.

Rev: NT/tools/rntecl:1.2

1:   #!/usr/local/bin/pike   // -*- Pike -*-    + // $Id: rntecl,v 1.2 2000/08/01 13:40:06 grubba Exp $ +    // RNTECL, a front-end to Intel ECL with options similar to GCC   // Written by Fredrik Hubinette & Henrik Grubbström.   
43:   {    string *ldopts=({"-INCREMENTAL:no"});    string *cflags=({ -  "-Wp64", +  "-Wp64", // Generate warnings for loss of precision. +  //"-W4", // Maximum verbosity. +  "-W3", // More warnings.    "-D__WIN32__",    "-D_WIN32",    "-D__NT__",
307:    "#!/usr/local/bin/pike\n"    "inherit \""+find_lib_location()+"\";\n"    "int main(int argc, string *argv) {\n" -  "argv[0]+=\".exe\";\n" -  "argv[0]=getenv(\"NTDRIVE\")+fixpath(combine_path(getcwd(),argv[0]));\n" +  " if (lower_case(getenv(\"CROSSCOMPILING\")||\"no\") != \"no\")\n" +  " exit(1);\n" +  " argv[0]+=\".exe\";\n" +  " argv[0]=getenv(\"NTDRIVE\")+fixpath(combine_path(getcwd(),argv[0]));\n"    " int ret=silent_do_cmd(argv);\n"    " exit(ret);\n"    "}\n");