Skip to content

Commit 45e833f

Browse files
authored
Merge pull request swiftlang#31057 from 3405691582/OpenBSD_Port_CppIsCpp
[build] Set language flag for C++ on OpenBSD.
2 parents bc0dd81 + 1f0550f commit 45e833f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ set(SWIFT_RUNTIME_CORE_LINK_FLAGS "${SWIFT_RUNTIME_LINK_FLAGS}")
2929

3030
if(CMAKE_SYSTEM_NAME STREQUAL "CYGWIN")
3131
list(APPEND SWIFT_RUNTIME_CORE_CXX_FLAGS "-mcmodel=large")
32+
elseif(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
33+
list(APPEND SWIFT_RUNTIME_CORE_CXX_FLAGS "-xc++")
3234
endif()
3335

3436
# C++ code in the runtime and standard library should generally avoid

0 commit comments

Comments
 (0)