Go to the source code of this file.
Function Documentation
struct pex_obj* collect_execute |
( |
const char * |
prog, |
|
|
char ** |
argv, |
|
|
const char * |
outname, |
|
|
const char * |
errname, |
|
|
int |
flags |
|
) |
| |
|
read |
Execute a program, and wait for the reply.
If using @file arguments, create a temporary file and put the
contents of argv into it. Then change argv to an array corresponding
to a single argument @FILE, where FILE is the temporary filename.
Note: we assume argv contains at least one element; this is
checked above.
If we cannot find a program we need, complain error. Do this here
since we might not end up needing something that we could not find.
int collect_wait |
( |
const char * |
, |
|
|
struct pex_obj * |
|
|
) |
| |
void do_tlink |
( |
char ** |
, |
|
|
char ** |
|
|
) |
| |
void dump_ld_file |
( |
const char * |
, |
|
|
FILE * |
|
|
) |
| |
int file_exists |
( |
const char * |
| ) |
|
void notice |
( |
const char * |
, |
|
|
|
... |
|
) |
| |
void notice_translated |
( |
const char * |
, |
|
|
|
... |
|
) |
| |
Variable Documentation
bool may_unlink_output_file |
Whether we may unlink the output file, which should be set as soon as we
know we have successfully produced it. This is typically useful to prevent
blindly attempting to unlink a read-only output that the target linker
would leave untouched.