| 158 | } |
| 159 | |
| 160 | void TestOutputExecutable() { |
| 161 | if (mode == LINK) { |
| 162 | if (Output && FileExtension(Output)->len() != 0) { |
| 163 | return; |
| 164 | } |
| 165 | Str *path = DirName(ProgramPath()); |
| 166 | if (path) { |
| 167 | path->add("/../Singular/threadsupport.cc"); |
| 168 | path = NormalizePath(path); |
| 169 | } |
| 170 | if (path && FileStat(path)) { |
| 171 | ExtraArgs->add(path); |
| 172 | } else { |
| 173 | PrintLn(path); |
| 174 | Error("cannot locate ppcc directory"); |
| 175 | } |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | void ParseArgs() { |
| 180 | if (ArgC <= 1) { |
no test coverage detected