don't require E_START env var to be set when running on valgrind

make manually valgrinding easier
This commit is contained in:
Mike Blumenkrantz 2018-01-31 14:13:25 -05:00
parent 1106bbde50
commit ed361340d7
3 changed files with 6649 additions and 2 deletions

View File

@ -3,6 +3,8 @@
# include <sys/prctl.h>
#endif
#include "valgrind.h"
#define MAX_LEVEL 80
#define TS_DO
@ -1283,7 +1285,7 @@ _e_main_parse_arguments(int argc, char **argv)
/* we want to have been launched by enlightenment_start. there is a very */
/* good reason we want to have been launched this way, thus check */
if (!getenv("E_START"))
if ((!getenv("E_START")) && (!RUNNING_ON_VALGRIND))
{
e_error_message_show(_("You are executing enlightenment directly. This is\n"
"bad. Please do not execute the \"enlightenment\"\n"

View File

@ -225,7 +225,8 @@ src = [
'efx/efx_rotate.c',
'efx/efx_spin.c',
'efx/efx_util.c',
'efx/efx_zoom.c'
'efx/efx_zoom.c',
'valgrind.h'
]
hdr = [

6644
src/bin/valgrind.h Normal file

File diff suppressed because it is too large Load Diff