Using Static Analysis to Give Build Tools a Brain