Skip to content

Commit 5280fb0

Browse files
committed
build: remove SWIFT_BUILD_STDLIB check (NFC)
The swiftReflection library is only being built under a standard library build. The check is already present at a higher level, so there is no need to replicate the check.
1 parent d3f7215 commit 5280fb0

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

stdlib/public/Reflection/CMakeLists.txt

+6-9
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,9 @@ if (LLVM_ENABLE_ASSERTIONS)
1919
"${SWIFT_SOURCE_DIR}/lib/Demangling/NodeDumper.cpp")
2020
endif(LLVM_ENABLE_ASSERTIONS)
2121

22-
if(SWIFT_BUILD_STDLIB)
23-
add_swift_target_library(swiftReflection STATIC
24-
${swiftReflection_SOURCES}
25-
C_COMPILE_FLAGS ${SWIFT_RUNTIME_CXX_FLAGS} -DswiftCore_EXPORTS
26-
LINK_FLAGS ${SWIFT_RUNTIME_LINK_FLAGS}
27-
SWIFT_COMPILE_FLAGS ${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
28-
INSTALL_IN_COMPONENT dev)
29-
endif()
30-
22+
add_swift_target_library(swiftReflection STATIC
23+
${swiftReflection_SOURCES}
24+
C_COMPILE_FLAGS ${SWIFT_RUNTIME_CXX_FLAGS} -DswiftCore_EXPORTS
25+
LINK_FLAGS ${SWIFT_RUNTIME_LINK_FLAGS}
26+
SWIFT_COMPILE_FLAGS ${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
27+
INSTALL_IN_COMPONENT dev)

0 commit comments

Comments
 (0)