Skip to content

[Importer] define SWIFT_SDK_OVERLAY_DISPATCH_EPOCH on non-Darwin platforms #3346

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/ClangImporter/ClangImporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,11 @@ getNormalInvocationArguments(std::vector<std::string> &invocationArgStrs,
//
// Just use the most feature-rich C language mode.
"-x", "c", "-std=gnu11",

// Define macros that Swift bridging headers use.

// Request new APIs from libdispatch.
"-DSWIFT_SDK_OVERLAY_DISPATCH_EPOCH=2",
});

// The module map used for Glibc depends on the target we're compiling for,
Expand Down