mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When SWIFT_ENABLE_REFLECTION is Off, don't build the reflection runtime code (stdlib/public/Reflection/*.cpp)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user