mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Driver uses its path to derive the plugin paths (i.e. 'lib/swift/host/plugins' et al.) Previously it was a constant string 'swiftc' that caused SourceKit failed to find dylib plugins in the toolchain. Since 'SwiftLangSupport' knows the swift-frontend path, use it, but replacing the filename with 'swiftc', to derive the plugin paths. rdar://107849796
17 lines
408 B
C++
17 lines
408 B
C++
#ifndef SWIFT_IDE_TEST_MODULE_API_DIFF_H
|
|
#define SWIFT_IDE_TEST_MODULE_API_DIFF_H
|
|
|
|
#include "swift/Basic/LLVM.h"
|
|
#include <string>
|
|
|
|
namespace swift {
|
|
|
|
int doGenerateModuleAPIDescription(StringRef DriverPath,
|
|
StringRef MainExecutablePath,
|
|
ArrayRef<std::string> Args);
|
|
|
|
} // end namespace swift
|
|
|
|
#endif // SWIFT_IDE_TEST_MODULE_API_DIFF_H
|
|
|