Skip to content

Commit 148d08b

Browse files
authored
Merge pull request #41498 from compnerd/builtin-offset
build: adjust the flags addition for the standard library
2 parents 4299093 + b81024c commit 148d08b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

stdlib/cmake/modules/AddSwiftStdlib.cmake

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,7 @@ function(_add_target_variant_c_compile_flags)
215215
list(APPEND result "-DLLVM_ON_WIN32")
216216
list(APPEND result "-D_CRT_SECURE_NO_WARNINGS")
217217
list(APPEND result "-D_CRT_NONSTDC_NO_WARNINGS")
218-
if(NOT "${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC")
219-
list(APPEND result "-D_CRT_USE_BUILTIN_OFFSETOF")
220-
endif()
218+
list(APPEND result "-D_CRT_USE_BUILTIN_OFFSETOF")
221219
# TODO(compnerd) permit building for different families
222220
list(APPEND result "-D_CRT_USE_WINAPI_FAMILY_DESKTOP_APP")
223221
if("${CFLAGS_ARCH}" MATCHES arm)

0 commit comments

Comments
 (0)