Commit f5697e3e authored by David Schleef's avatar David Schleef

don't unlink tmp file if debug flag is used

parent 639bcc01
......@@ -44,7 +44,9 @@ orc_compiler_allocate_codemem (OrcCompiler *compiler)
ORC_COMPILER_ERROR (compiler, "failed to create temp file");
return;
}
if (!_orc_compiler_flag_debug) {
unlink (filename);
}
free (filename);
}
......
......@@ -36,7 +36,8 @@ int orc_compiler_dup_temporary (OrcCompiler *compiler, int var, int j);
void orc_compiler_check_sizes (OrcCompiler *compiler);
static char **_orc_compiler_flag_list;
static int _orc_compiler_flag_backup;
int _orc_compiler_flag_backup;
int _orc_compiler_flag_debug;
void
_orc_compiler_init (void)
......@@ -49,6 +50,7 @@ _orc_compiler_init (void)
}
_orc_compiler_flag_backup = orc_compiler_flag_check ("backup");
_orc_compiler_flag_debug = orc_compiler_flag_check ("debug");
}
int
......
......@@ -48,7 +48,6 @@ static OrcTarget sse_target = {
sse_get_flag_name
};
static int _orc_compiler_flag_debug;
void
......@@ -68,8 +67,6 @@ orc_sse_init (void)
orc_target_register (&sse_target);
orc_compiler_sse_register_rules (&sse_target);
_orc_compiler_flag_debug = orc_compiler_flag_check ("debug");
}
unsigned int
......
......@@ -605,6 +605,9 @@ extern int _orc_data_cache_size_level1;
extern int _orc_data_cache_size_level2;
extern int _orc_data_cache_size_level3;
extern int _orc_compiler_flag_backup;
extern int _orc_compiler_flag_debug;
#endif
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment