citrun

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

commit e0208b5db820f2593f59fe5f8538f7f3f7583a4d
parent a8f54dded945b727cbf4a8681566fc89d2047006
Author: Kyle Milz <kyle@0x30.net>
Date:   Mon,  2 Jan 2017 01:28:27 -0700

src: wrap Err with _WIN32 and use PATH not Path

Diffstat:
Msrc/inst_frontend.cc | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/inst_frontend.cc b/src/inst_frontend.cc @@ -45,6 +45,7 @@ static llvm::cl::OptionCategory ToolingCategory("citrun_inst options"); +#ifdef _WIN32 static void Err(int code, const char *fmt) { @@ -56,6 +57,7 @@ Err(int code, const char *fmt) std::cerr << fmt << ": " << buf << std::endl; ExitProcess(code); } +#endif // _WIN32 InstFrontend::InstFrontend(int argc, char *argv[], bool is_citrun_inst) : m_args(argv, argv + argc), @@ -102,7 +104,7 @@ InstFrontend::clean_PATH() { char *path; - if ((path = std::getenv("Path")) == NULL) { + if ((path = std::getenv("PATH")) == NULL) { m_log << "Error: PATH is not set." << std::endl; exit(1); }