Skip to content

Commit 30d9e0e

Browse files
authored
Merge pull request #20770 from compnerd/no-more-roti
2 parents 9f6de1f + 6a0989b commit 30d9e0e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,9 @@ function(_add_variant_c_compile_flags)
265265
# Emulate /GR-.
266266
# TODO(compnerd) when moving up to VS 2017 15.3 and newer, we can disable
267267
# RTTI again
268-
if(NOT SWIFT_COMPILER_IS_MSVC_LIKE)
268+
if(SWIFT_COMPILER_IS_MSVC_LIKE)
269+
list(APPEND result /GR-)
270+
else()
269271
list(APPEND result -frtti)
270272
list(APPEND result -Xclang;-fno-rtti-data)
271273
endif()

0 commit comments

Comments
 (0)