MCPcopy Create free account
hub / github.com/Singular/Singular / TestOutputExecutable

Function TestOutputExecutable

ppcc/src/ppcc.cc:160–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160void 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
179void ParseArgs() {
180 if (ArgC <= 1) {

Callers 1

ExecCompilerFunction · 0.85

Calls 9

FileExtensionFunction · 0.85
DirNameFunction · 0.85
ProgramPathFunction · 0.85
NormalizePathFunction · 0.85
FileStatFunction · 0.85
ErrorFunction · 0.85
PrintLnFunction · 0.50
lenMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected