mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add an optional language feature for Library Evolution
Replace the one-off compiler flag for Library Evolution with an optional language feature. This makes the `hasFeature(LibraryEvolution)` check work in an `#if`, and is otherwise just cleanup. Tracked by rdar://161125572.
This commit is contained in:
@@ -140,7 +140,7 @@ int swift_symbolgraph_extract_main(ArrayRef<const char *> Args,
|
||||
Invocation.getLangOptions().EnableObjCInterop = Target.isOSDarwin();
|
||||
Invocation.getLangOptions().DebuggerSupport = true;
|
||||
|
||||
Invocation.getFrontendOptions().EnableLibraryEvolution = true;
|
||||
Invocation.getLangOptions().enableFeature(Feature::LibraryEvolution);
|
||||
|
||||
std::string ModuleCachePath = "";
|
||||
if (auto *A = ParsedArgs.getLastArg(OPT_module_cache_path)) {
|
||||
|
||||
Reference in New Issue
Block a user