Support --save_temps for objc_library
@@ -2099,8 +2099,10 @@ public final class CcCompilationHelper {
String path = source.getFilename();
boolean isCFile = CppFileTypes.C_SOURCE.matches(path);
boolean isCppFile = CppFileTypes.CPP_SOURCE.matches(path);
+ boolean isObjcFile = CppFileTypes.OBJC_SOURCE.matches(path);
+ boolean isObjcppFile = CppFileTypes.OBJCPP_SOURCE.matches(path);
- if (!isCFile && !isCppFile) {
+ if (!isCFile && !isCppFile && !isObjcFile && !isObjcppFile) {
return ImmutableList.of();
}
