Ejemplo n.º 1
0
void GeneratorBase::emit_filter(const std::string &output_dir,
                                const std::string &function_name,
                                const std::string &file_base_name,
                                const EmitOptions &options) {
    std::string base_path = compute_base_path(output_dir, function_name, file_base_name);
    compile_module_to_filter(build_module(function_name), base_path, options);
}
Ejemplo n.º 2
0
static void do_build(struct manifest *m,
		     bool keep,
		     unsigned int *timeleft,
		     struct score *score)
{
	char *errstr;

	if (list_empty(&m->c_files)) {
		/* No files?  No score, but we "pass". */
		score->total = 0;
		score->pass = true;
		return;
	}

	m->compiled = build_module(m, keep, &errstr);
	if (!m->compiled) {
		score_file_error(score, NULL, 0, errstr);
		return;
	}

	score->pass = true;
	score->score = score->total;
}