Rev 2 | Rev 5 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2 | Rev 4 | ||
---|---|---|---|
Line 172... | Line 172... | ||
172 | if ((strcmp (argv[arg_index - 1], "-o") != 0) // arg is NOT preceded by -o AND is an existing file that is NOT a known extension |
172 | if ((strcmp (argv[arg_index - 1], "-o") != 0) // arg is NOT preceded by -o AND is an existing file that is NOT a known extension |
173 | && (access (argv[arg_index], 0) == 0) |
173 | && (access (argv[arg_index], 0) == 0) |
174 | && ((arg = strrchr (argv[arg_index], '.')) != NULL) |
174 | && ((arg = strrchr (argv[arg_index], '.')) != NULL) |
175 | && (strcasecmp (arg, ".s") != 0) |
175 | && (strcasecmp (arg, ".s") != 0) |
176 | && (strcasecmp (arg, ".c") != 0) |
176 | && (strcasecmp (arg, ".c") != 0) |
- | 177 | && (strcasecmp (arg, ".cc") != 0) |
|
177 | && (strcasecmp (arg, ".c++") != 0) |
178 | && (strcasecmp (arg, ".c++") != 0) |
178 | && (strcasecmp (arg, ".cpp") != 0) |
179 | && (strcasecmp (arg, ".cpp") != 0) |
179 | && (strcasecmp (arg, ".cxx") != 0) |
180 | && (strcasecmp (arg, ".cxx") != 0) |
180 | && (strcasecmp (arg, ".m") != 0) |
181 | && (strcasecmp (arg, ".m") != 0) |
181 | && (strcasecmp (arg, ".mm") != 0) |
182 | && (strcasecmp (arg, ".mm") != 0) |
Line 1115... | Line 1116... | ||
1115 | fprintf (stderr, "%s%s%s\n", (arg_index > 0 ? "\t" : ""), linker_argv[arg_index], ((size_t) arg_index + 1 < linker_argc ? " \\" : "")); |
1116 | fprintf (stderr, "%s%s%s\n", (arg_index > 0 ? "\t" : ""), linker_argv[arg_index], ((size_t) arg_index + 1 < linker_argc ? " \\" : "")); |
1116 | fputs ("LINKER DRIVER: CONSTRUCTED COMMAND LINE END\n", stderr); |
1117 | fputs ("LINKER DRIVER: CONSTRUCTED COMMAND LINE END\n", stderr); |
1117 | } |
1118 | } |
1118 | 1119 | ||
1119 | execvpe (LINKER, linker_argv, envp); |
1120 | execvpe (LINKER, linker_argv, envp); |
1120 | return (1); // |
1121 | return (1); // unreachable code |
1121 | } |
1122 | } |