orbea / cross / slibtool

Forked from cross/slibtool 3 years ago
Clone

Blame src/output/slbt_output_compile.c

6f991b
/*******************************************************************/
6f991b
/*  slibtool: a skinny libtool implementation, written in C        */
6f991b
/*  Copyright (C) 2016  Z. Gilboa                                  */
6f991b
/*  Released under the Standard MIT License; see COPYING.SLIBTOOL. */
6f991b
/*******************************************************************/
6f991b
6f991b
#include <stdio.h>
6f991b
#include <slibtool/slibtool.h>
6f991b
6f991b
int slbt_output_compile(
6f991b
	const struct slbt_driver_ctx *	dctx,
6f991b
	const struct slbt_exec_ctx *	ectx)
6f991b
{
6f991b
	char ** parg;
6f991b
6f991b
	if (fprintf(stdout,"%s: compile:",dctx->program) < 0)
6f991b
		return -1;
6f991b
6f991b
	for (parg=ectx->argv; *parg; parg++)
6f991b
		if (fprintf(stdout," %s",*parg) < 0)
6f991b
			return -1;
6f991b
6f991b
	if (fputc('\n',stdout) < 0)
6f991b
		return -1;
6f991b
6f991b
	return 0;
6f991b
}