When SWIFT_ENABLE_REFLECTION is Off, don't build the reflection runtime code (stdlib/public/Reflection/*.cpp)

This commit is contained in:
Kuba Mracek
2021-12-14 17:23:07 -08:00
parent 186713eea0
commit c10c1bbe5e
7 changed files with 23 additions and 2 deletions

View File

@@ -10,6 +10,8 @@
//
//===----------------------------------------------------------------------===//
#if SWIFT_ENABLE_REFLECTION
#include "swift/Reflection/MetadataSource.h"
#include <iostream>
@@ -103,3 +105,5 @@ void MetadataSource::dump(std::ostream &stream, unsigned Indent) const {
PrintMetadataSource(stream, Indent).visit(this);
stream << "\n";
}
#endif