gwenhywfar 5.12.0
trycompile.c File Reference
#include "gwenbuild/tools/trycompile.h"
#include <gwenhywfar/syncio.h>
#include <gwenhywfar/process.h>
#include <gwenhywfar/debug.h>
#include <unistd.h>
#include <stdlib.h>
Include dependency graph for trycompile.c:

Go to the source code of this file.

Functions

int GWB_Tools_CheckCompilerArgs (GWB_CONTEXT *context, const char *compilerArgs)
int GWB_Tools_TryCompile (GWB_CONTEXT *context, const char *testCode)

Function Documentation

◆ GWB_Tools_CheckCompilerArgs()

int GWB_Tools_CheckCompilerArgs ( GWB_CONTEXT * context,
const char * compilerArgs )

Definition at line 89 of file trycompile.c.

References DBG_ERROR, GWB_Context_GetVars(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_DB_GetCharValue(), GWEN_ERROR_INTERNAL, GWEN_Process_RunCommandWaitAndGather(), GWEN_SyncIo_Helper_WriteFile(), and NULL.

Referenced by _parseArg().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWB_Tools_TryCompile()

int GWB_Tools_TryCompile ( GWB_CONTEXT * context,
const char * testCode )