[PATCH] D16514: Add -stop-on-failure driver option, and enable it by default for CUDA compiles.
Justin Lebar via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 23 12:57:00 PST 2016
jlebar created this revision.
jlebar added a reviewer: tra.
jlebar added subscribers: echristo, cfe-commits, jhen.
When compiling CUDA, we run the frontend N times, once for each device
arch. This means that if you have a compile error in your file, you'll
see that error N times.
Relatedly, if ptxas fails, we'll output that error and then still try to
pass its output to fatbinary, which then fails because (duh) its input
file doesn't exist.
This patch stops compilations with -stop-on-failure as soon as we
encounter an error. -stop-on-failure is turned on by default for CUDA
compilations.
http://reviews.llvm.org/D16514
Files:
include/clang/Driver/Compilation.h
include/clang/Driver/Driver.h
include/clang/Driver/Options.td
lib/Driver/Compilation.cpp
lib/Driver/Driver.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16514.45803.patch
Type: text/x-patch
Size: 5269 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160123/c757bbf8/attachment.bin>
More information about the cfe-commits
mailing list