Allow # and ; as comment indicators
the build was successful Details

This commit is contained in:
tastytea 2019-01-25 04:18:04 +01:00
parent eb0bcaf535
commit a4b4b41577
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.2)
project(compilescript
VERSION 0.3.2
VERSION 0.3.3
LANGUAGES CXX
)

View File

@ -174,6 +174,11 @@ int main(int argc, char *argv[])
{
compiler_arguments = buf.substr(16);
}
else if ((buf.substr(0, 15) == "#compilescript:") ||
(buf.substr(0, 15) == ";compilescript:"))
{
compiler_arguments = buf.substr(15);
}
else
{
out << buf << endl;