From: Mikko Rasa Date: Wed, 12 Jun 2019 16:40:01 +0000 (+0300) Subject: Allow generator commands to reside outside of the package X-Git-Url: http://git.tdb.fi/?p=builder.git;a=commitdiff_plain;h=8543062496cb35d73014d0a9877cbe5553aa30a4 Allow generator commands to reside outside of the package In particular, this lets system binaries to be used as generators. --- diff --git a/source/sourcegenerator.cpp b/source/sourcegenerator.cpp index 192ae28..6394bd7 100644 --- a/source/sourcegenerator.cpp +++ b/source/sourcegenerator.cpp @@ -99,7 +99,10 @@ void SourceGenerator::Loader::argument(const string &a) void SourceGenerator::Loader::command(const string &c) { - obj.set_command((obj.package.get_source_directory()/c).str()); + if(c.find('/')!=string::npos) + obj.set_command((obj.package.get_source_directory()/c).str()); + else + obj.set_command(c); } void SourceGenerator::Loader::in_suffix(const string &s)