From 43f6e5ddc4f82be3d33e04769b8c3ace78e3b3d4 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 25 Nov 2017 16:05:51 +0800 Subject: testrunner - Ignore any empty compiler flags --- tools/testrunner/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tools/testrunner/main.cpp') diff --git a/tools/testrunner/main.cpp b/tools/testrunner/main.cpp index 1bdec235..11c0c248 100644 --- a/tools/testrunner/main.cpp +++ b/tools/testrunner/main.cpp @@ -226,8 +226,11 @@ int main(int argc, const char* argv[]) if( start != end ) { auto a = line.substr(start, end-start); - DEBUG("+" << a); - td.m_extra_flags.push_back(::std::move(a)); + if( a != "" ) + { + DEBUG("+" << a); + td.m_extra_flags.push_back(::std::move(a)); + } } if( end == ::std::string::npos ) break; -- cgit v1.2.3