commit | c6d19a19c34899b2f6f61b0359ce0b2bc2fe969e | [log] [tgz] |
---|---|---|
author | Shih-wei Liao <sliao@google.com> | Mon Oct 11 00:34:01 2010 -0700 |
committer | Shih-wei Liao <sliao@google.com> | Mon Oct 11 00:34:01 2010 -0700 |
tree | 444af29ae1af4b10de6447d6985871b9b6170f65 | |
parent | 603217c72ef310ea385f906662c7d6136d45f464 [diff] |
Return 1 in main() to stop the build system when there's an error. Change-Id: Ibc75155278e1d2dd820a000baabeaac0d651badc
diff --git a/llvm-rs-cc.cpp b/llvm-rs-cc.cpp index 37987d6..03fdd45 100644 --- a/llvm-rs-cc.cpp +++ b/llvm-rs-cc.cpp
@@ -432,9 +432,8 @@ OutputFile, DepOutputFile, Opts)) { - llvm::errs() << "Failed to compile '" << InputFile << "' (" - << Compiler->getErrorMessage() << ")"; - break; + llvm::errs() << Compiler->getErrorMessage(); + return 1; } }