jlebar added a comment.

Okay, I see why things don't work as expected without this patch but do work 
for e.g. macos universal binaries.

The reason is, we build a completely separate set of actions for each 
invocation of cc1 -- one for the host compilation, and one for each device 
arch.  Then the logic inside Compilation.cpp, which is in fact trying not to 
display duplicate errors, doesn't work, because it doesn't know that these 
compilations are related.

I think I may be able to fix this.


http://reviews.llvm.org/D16514



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to