[Driver] Implement inference of -plugin-path arguments.

This was previously implemented in the new driver; backport it to the
existing driver, which is still used by SourceKit.

Fixes rdar://106790436.
This commit is contained in:
Doug Gregor
2023-03-21 21:21:16 -07:00
parent eb6dc2279a
commit 74b12e8f23
2 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
// RUN: %swiftc_driver -driver-print-jobs -target x86_64-apple-macosx10.9 %s 2>^1 | %FileCheck %s
// CHECK: -plugin-path
// CHECK-SAME: BUILD_DIR/lib/swift/host/plugins
// CHECK-SAME: -plugin-path
// CHECK-SAME: BUILD_DIR/local/lib/swift/host/plugins