What build system do you use at Facebook? Changing a whitespace in a .cc should always cause just that for to be compiled. Changing whitespace in a header is trickier and smart build systems can inner that you didn't change code as compared to whatever was cached.