api-digester: disable objc interop when building on linux. SR-10539

This commit is contained in:
Xi Ge
2019-05-14 11:13:58 -07:00
parent da442f4adc
commit b0005a5bdc

View File

@@ -2246,6 +2246,12 @@ static int prepareForDump(const char *Main,
InitInvok.setMainExecutablePath(fs::getMainExecutable(Main,
reinterpret_cast<void *>(&anchorForGetMainExecutable)));
InitInvok.setModuleName("swift_ide_test");
#if __APPLE__
InitInvok.getLangOptions().EnableObjCInterop = true;
#else
// Ensure the tool works on linux properly
InitInvok.getLangOptions().EnableObjCInterop = false;
#endif
if (!options::SDK.empty()) {
InitInvok.setSDKPath(options::SDK);
} else if (const char *SDKROOT = getenv("SDKROOT")) {