From: Mikko Rasa Date: Fri, 8 Jun 2012 07:30:05 +0000 (+0300) Subject: Allow omitting workdir in ExternalTask constructor call X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=b3851916ce08424fb5a28a57d70945e805d8d931;p=builder.git Allow omitting workdir in ExternalTask constructor call --- diff --git a/source/builder.cpp b/source/builder.cpp index 2591fc3..0cbcb22 100644 --- a/source/builder.cpp +++ b/source/builder.cpp @@ -321,7 +321,7 @@ string Builder::run_pkgconfig(const string &pkg, const string &what) if(verbose>=4) IO::print("Running %s\n", join(argv.begin(), argv.end())); - ExternalTask task(argv, FS::Path()); + ExternalTask task(argv); task.set_stdout(ExternalTask::CAPTURE); task.set_stderr(ExternalTask::IGNORE); task.start(); diff --git a/source/externaltask.h b/source/externaltask.h index c9bc823..1b330ff 100644 --- a/source/externaltask.h +++ b/source/externaltask.h @@ -30,7 +30,7 @@ private: std::string output; public: - ExternalTask(const Arguments &, const Msp::FS::Path &); + ExternalTask(const Arguments &, const Msp::FS::Path & = Msp::FS::Path()); virtual ~ExternalTask(); virtual std::string get_command() const;