mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When building with assertions enabled, link the demangle tree dumper into the runtime and remote mirrors libraries. This makes debugging demangling-related issues a whole lot easier.
28 lines
996 B
CMake
28 lines
996 B
CMake
set(swift_extra_sources)
|
|
|
|
# When we're building with assertions, include the demangle node dumper to aid
|
|
# in debugging.
|
|
if (LLVM_ENABLE_ASSERTIONS)
|
|
list(APPEND swift_extra_sources "${SWIFT_SOURCE_DIR}/lib/Demangling/NodeDumper.cpp")
|
|
endif(LLVM_ENABLE_ASSERTIONS)
|
|
|
|
|
|
add_swift_library(swiftReflection STATIC TARGET_LIBRARY FORCE_BUILD_FOR_HOST_SDK
|
|
MetadataSource.cpp
|
|
TypeLowering.cpp
|
|
TypeRef.cpp
|
|
TypeRefBuilder.cpp
|
|
"${SWIFT_SOURCE_DIR}/lib/Demangling/Context.cpp"
|
|
"${SWIFT_SOURCE_DIR}/lib/Demangling/OldDemangler.cpp"
|
|
"${SWIFT_SOURCE_DIR}/lib/Demangling/Demangler.cpp"
|
|
"${SWIFT_SOURCE_DIR}/lib/Demangling/NodePrinter.cpp"
|
|
"${SWIFT_SOURCE_DIR}/lib/Demangling/ManglingUtils.cpp"
|
|
"${SWIFT_SOURCE_DIR}/lib/Demangling/Punycode.cpp"
|
|
"${SWIFT_SOURCE_DIR}/lib/Demangling/Remangler.cpp"
|
|
"${SWIFT_SOURCE_DIR}/lib/Demangling/TypeDecoder.cpp"
|
|
${swift_extra_sources}
|
|
C_COMPILE_FLAGS ${SWIFT_RUNTIME_CXX_FLAGS}
|
|
LINK_FLAGS ${SWIFT_RUNTIME_LINK_FLAGS}
|
|
INSTALL_IN_COMPONENT dev)
|
|
|