Build libSwiftStaticMirror as a standalone library with minimal required dependencies.

This separates it from `libSwiftScan` and allows us to build this library without building much of the rest of the compiler.

Also refactor `utils/build-parser-lib` into `utils/build-tooling-libs` which builds both SwiftSyntaxParser and SwiftStaticMirror.
This commit is contained in:
Artem Chikin
2022-02-03 14:54:48 -08:00
parent 59f29f09d4
commit d24e15812b
26 changed files with 429 additions and 307 deletions

View File

@@ -16,7 +16,7 @@
#ifndef SWIFT_C_BINARY_SCAN_IMPL_H
#define SWIFT_C_BINARY_SCAN_IMPL_H
#include "swift-c/DependencyScan/BinaryScan.h"
#include "swift-c/StaticMirror/BinaryScan.h"
namespace swift {
namespace static_mirror {
@@ -24,10 +24,10 @@ class BinaryScanningTool;
}
} // namespace swift
struct swiftscan_conformance_info_s {
swiftscan_string_ref_t type_name;
swiftscan_string_ref_t mangled_type_name;
swiftscan_string_ref_t protocol_name;
struct swift_static_mirror_conformance_info_s {
swift_static_mirror_string_ref_t type_name;
swift_static_mirror_string_ref_t mangled_type_name;
swift_static_mirror_string_ref_t protocol_name;
};
#endif // SWIFT_C_BINARY_SCAN_IMPL_H