console: Fix error highlighting for builds

Also avoid potential crash on non-gnu systems
This commit is contained in:
Andy Williams 2017-06-09 10:36:09 -07:00
parent 31d2d30980
commit 19c62faa48
2 changed files with 4 additions and 2 deletions

View File

@ -91,6 +91,8 @@ _edi_consolepanel_clicked_cb(void *data EINA_UNUSED, const Efl_Event *event)
unsigned int length;
line = (Elm_Code_Line *)event->info;
if (!line->data)
return;
content = elm_code_line_text_get(line, &length);
terminated = malloc(sizeof(char) * (length + 1));

View File

@ -13,7 +13,7 @@
#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) || defined(__NetBSD__)
#define MAKE_COMMAND " gmake"
#else
#define MAKE_COMMAND " make"
#define MAKE_COMMAND " make -w"
#endif
@ -85,7 +85,7 @@ static void
_make_test(void)
{
chdir(edi_project_get());
ecore_exe_pipe_run("env CK_VERBOSITY=verbose make check", ECORE_EXE_PIPE_READ_LINE_BUFFERED | ECORE_EXE_PIPE_READ |
ecore_exe_pipe_run("env CK_VERBOSITY=verbose" MAKE_COMMAND " check", ECORE_EXE_PIPE_READ_LINE_BUFFERED | ECORE_EXE_PIPE_READ |
ECORE_EXE_PIPE_ERROR_LINE_BUFFERED | ECORE_EXE_PIPE_ERROR |
ECORE_EXE_PIPE_WRITE | ECORE_EXE_USE_SH, NULL);
}