4 == Describe every action. */
extern int verbose;
+enum compile_type {
+ COMPILE_NORMAL,
+ COMPILE_NOFEAT,
+ COMPILE_COVERAGE,
+ COMPILE_TYPES
+};
+
struct manifest {
char *dir;
/* The module name, ie. final element of dir name */
/* Linked off deps. */
struct list_node list;
/* Where our final compiled output is */
- char *compiled;
+ char *compiled[COMPILE_TYPES];
struct list_head c_files;
struct list_head h_files;
struct list_head *doc_sections;
/* If this file gets compiled (eg. .C file to .o file), result here. */
- char *compiled;
-
- /* Compiled with coverage information. */
- char *cov_compiled;
+ char *compiled[COMPILE_TYPES];
/* Filename containing output from valgrind. */
char *valgrind_log;
void score_file_error(struct score *, struct ccan_file *f, unsigned line,
const char *errorfmt, ...);
+/* Start a command in the background. */
+void run_command_async(const void *ctx, unsigned int time_ms,
+ const char *fmt, ...);
+
+/* Async version of compile_and_link. */
+void compile_and_link_async(const void *ctx, unsigned int time_ms,
+ const char *cfile, const char *ccandir,
+ const char *objs, const char *compiler,
+ const char *cflags,
+ const char *libs, const char *outfile);
+
+/* Get results of a command, returning ctx (and free it). */
+void *collect_command(bool *ok, char **output);
+
/* Normal tests. */
extern struct ccanlint trailing_whitespace;