citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit bf5a45957e45e5d1094487b99cf7afb51d1d3536
parent ec2ef4e6589db4fe733837063fd4f181d90c0901
Author: kyle <kyle@0x30.net>
Date:   Tue, 17 Jan 2017 23:57:23 -0700

inst: move setprogname to avoid #ifdef _WIN32

Diffstat:
Minst_fe.cc | 4----
Minst_feunix.cc | 3+++
2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/inst_fe.cc b/inst_fe.cc @@ -38,10 +38,6 @@ InstFrontend::InstFrontend(int argc, char *argv[], bool is_citrun_inst) : m_is_citruninst(is_citrun_inst), m_log(is_citrun_inst) { -#ifndef _WIN32 - // Sometimes we're not called as citrun_inst so force that here. - setprogname("citrun_inst"); -#endif // _WIN32 } void diff --git a/inst_feunix.cc b/inst_feunix.cc @@ -53,6 +53,9 @@ InstFrontendUnix::log_os_str() else m_log << " (" << utsname.sysname << "-" << utsname.release << " " << utsname.machine << ")"; + + // Sometimes we're not called as citrun_inst so force that here. + setprogname("citrun_inst"); } void