mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-14 00:40:55 +00:00
Use output file as base for dot files
Ensures the output goes not go into the source directory when using a separate build tree.
This commit is contained in:
parent
3327127e36
commit
398e1cf83a
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
#include "dot.h"
|
#include "dot.h"
|
||||||
#include "function.h"
|
#include "function.h"
|
||||||
#include "qfcc.h"
|
#include "options.h"
|
||||||
#include "strpool.h"
|
#include "strpool.h"
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -46,7 +46,7 @@ dump_dot (const char *stage, void *data,
|
||||||
{
|
{
|
||||||
char *fname;
|
char *fname;
|
||||||
|
|
||||||
fname = nva ("%s.%s.%s.dot", GETSTR (pr.source_file), current_func->name,
|
fname = nva ("%s.%s.%s.dot", options.output_file, current_func->name,
|
||||||
stage);
|
stage);
|
||||||
dump_func (data, fname);
|
dump_func (data, fname);
|
||||||
free (fname);
|
free (fname);
|
||||||
|
|
Loading…
Reference in a new issue