Skip to content

Commit 1a95ea6

Browse files
committed
[Tests] Fix type round trip test when not building with assertions.
The stdlib version of libswiftDemangle doesn't include the node dumper when not building with assertions, but the type round trip test needs it.
1 parent 642b93d commit 1a95ea6

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

stdlib/public/CMakeLists.txt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,8 @@ if(SWIFT_BUILD_STDLIB OR SWIFT_BUILD_REMOTE_MIRROR)
7070
"${SWIFT_SOURCE_DIR}/lib/Demangling/OldDemangler.cpp"
7171
"${SWIFT_SOURCE_DIR}/lib/Demangling/OldRemangler.cpp"
7272
"${SWIFT_SOURCE_DIR}/lib/Demangling/Punycode.cpp"
73-
"${SWIFT_SOURCE_DIR}/lib/Demangling/Remangler.cpp")
74-
75-
# When we're building with assertions, include the demangle node dumper to aid
76-
# in debugging.
77-
if(LLVM_ENABLE_ASSERTIONS)
78-
list(APPEND swiftDemanglingSources
79-
"${SWIFT_SOURCE_DIR}/lib/Demangling/NodeDumper.cpp")
80-
endif()
73+
"${SWIFT_SOURCE_DIR}/lib/Demangling/Remangler.cpp"
74+
"${SWIFT_SOURCE_DIR}/lib/Demangling/NodeDumper.cpp")
8175

8276
add_swift_target_library(swiftDemangling OBJECT_LIBRARY
8377
${swiftDemanglingSources}

0 commit comments

Comments
 (0)