Abort on compilation error.
the build was successful 詳細

このコミットが含まれているのは:
tastytea 2019-01-01 09:29:16 +01:00
コミット 6cd9ff8083
署名者: tastytea
GPGキーID: CFC39497F1B26E07
2個のファイルの変更8行の追加3行の削除

ファイルの表示

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

ファイルの表示

@ -200,8 +200,13 @@ int main(int argc, char *argv[])
return 1;
}
std::system((compiler + " " + source.string() + " " + compiler_arguments
+ " -o " + binary.string()).c_str());
int ret = std::system((compiler + " " + source.string() + " "
+ compiler_arguments + " -o " + binary.string()).c_str());
if (ret != 0)
{
cerr << "ERROR: Compilation failed.\n";
return 1;
}
}
execv(binary.c_str(), &argv[1]);