diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-11-25 16:05:51 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-11-25 16:05:51 +0800 |
commit | 43f6e5ddc4f82be3d33e04769b8c3ace78e3b3d4 (patch) | |
tree | aaad16acb5497365a9c80ab3c20a311a2554877e /tools | |
parent | 781439a85e195f60a8f8def9630e2a2a29cc7d7c (diff) | |
download | mrust-43f6e5ddc4f82be3d33e04769b8c3ace78e3b3d4.tar.gz |
testrunner - Ignore any empty compiler flags
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testrunner/main.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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; |