mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Tests] Enable C++ interop for Runtime in the overlay verification test.
The Runtime module requires C++ interop enabled, because that's the only way to robustly fix things so that it is able to declare various types and constants without clashing with system headers. To make this work, we also need to add a missing invocation to sil-opt to make it pick the correct C++ runtime library. rdar://143050566
This commit is contained in:
@@ -794,6 +794,7 @@ int sil_opt_main(ArrayRef<const char *> argv, void *MainAddr) {
|
||||
}
|
||||
|
||||
Invocation.getLangOptions().EnableCXXInterop = options.EnableCxxInterop;
|
||||
Invocation.computeCXXStdlibOptions();
|
||||
|
||||
Invocation.getLangOptions().UnavailableDeclOptimizationMode =
|
||||
options.UnavailableDeclOptimization;
|
||||
|
||||
Reference in New Issue
Block a user