mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
ide: valgrind improvements
This commit is contained in:
parent
e450b6b54b
commit
cdd6c0edc2
2 changed files with 2 additions and 4 deletions
|
|
@ -302,6 +302,7 @@ void WorkspaceWork::Fetch(Package& p, const String& pkg)
|
|||
p.file.Clear();
|
||||
p.file.AddPick(Package::File(String(HELPNAME)));
|
||||
p.file.AddPick(Package::File(ConfigFile("global.defs")));
|
||||
p.file.AddPick(Package::File(ConfigFile("valgrind.xml")));
|
||||
for(String d : GetUppDirs()) {
|
||||
Package::File sep(GetFileName(d));
|
||||
sep.separator = true;
|
||||
|
|
|
|||
|
|
@ -19,11 +19,8 @@ void Ide::Valgrind()
|
|||
CreateHostRunDir(h);
|
||||
h.ChDir(Nvl(rundir, GetFileFolder(target)));
|
||||
String cmdline;
|
||||
String fn = GetTempFileName();
|
||||
String fn = ConfigFile("valgrind.xml");
|
||||
cmdline << "valgrind --xml=yes --num-callers=40 --xml-file=" << fn << ' ';
|
||||
String ValgSupp = ConfigFile("valgrind.supp");
|
||||
if(!IsNull(LoadFile(ValgSupp)))
|
||||
cmdline << "--suppressions=" << ValgSupp << ' ';
|
||||
if(!IsNull(valgrind_options))
|
||||
cmdline << valgrind_options << ' ';
|
||||
cmdline << '\"' << target << "\" ";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue