C++: Allow any type of file in cc_import hdrs
cc_library allows any type of file in the headers but cc_import only allows
cpp header files.
This commit makes it consistent to allow cc_import to have any type of file
in the header files.
Closes
@@ -77,7 +77,7 @@ public final class CcImportRule implements RuleDefinition {
attr("hdrs", LABEL_LIST)
.orderIndependent()
.direct_compile_time_input()
- .allowedFileTypes(CppFileTypes.CPP_HEADER))
+ .allowedFileTypes(FileTypeSet.ANY_FILE))
/*<!-- #BLAZE_RULE(cc_import).ATTRIBUTE(system_provided) -->
If 1, it indicates the shared library required at runtime is provided by the system. In
this case, <code>interface_library</code> should be specified and
