I'm using armcc/gcc for a code base that contains large header files (>20MB hardware CSR files). I want to be able to detect any file that includes this large header file, since I'm trying to root-cause my super-slow build.
Is there an option I could use in one of these compilers to warn me about the size of a file (including the size of the headers that it might be including)?