We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 23476e5 + 15355ab commit 474ecd5Copy full SHA for 474ecd5
cmake/modules/AddSwift.cmake
@@ -119,8 +119,8 @@ function(_add_variant_c_compile_link_flags)
119
endif()
120
121
122
- # MSVC and clang-cl don't understand -target.
123
- if (NOT SWIFT_COMPILER_IS_MSVC_LIKE)
+ # MSVC, clang-cl, gcc don't understand -target.
+ if(CMAKE_C_COMPILER_ID STREQUAL Clang AND NOT SWIFT_COMPILER_IS_MSVC_LIKE)
124
list(APPEND result "-target" "${SWIFT_SDK_${CFLAGS_SDK}_ARCH_${CFLAGS_ARCH}_TRIPLE}${DEPLOYMENT_VERSION}")
125
126
0 commit comments