When we import a module that defines a builtin identifier from prefix header and precompile the prefix header, the macro information related to the identifier is lost.
If we don't precompile the prefix header, the source file can still see the macro information.
The reason is that we write out the identifier in the pch but not the macro information since the macro is not defined locally.
This seems to be related to r251565: If we read a builtin identifier from a module that wasn't "interesting" to that module, we will still write it out to a PCH that imports that module.
The fix proposed here is to write exported module macros for PCH as well. I am open to other suggestions.