Swift embedded clang compiler defines

Does the swift compiler provide any built-in defines to tell whether a particular header file is being compiled by clang or by swiftc? The specific problem I'm hitting is a header file that has an #import "Module-Swift.h" being passed to swiftc via the module map. So what I would like is to wrap the #import "Module-Swift.h" directive in an #ifdef ???.

I guess I can pass -Xcc -DMYDEFINE but I was wondering if there was a built-in one...

Terms of Service

Privacy Policy

Cookie Policy