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.
1 parent 79e022f commit f115515Copy full SHA for f115515
eng/native/configurecompiler.cmake
@@ -788,6 +788,13 @@ if (CLR_CMAKE_HOST_WIN32)
788
endif()
789
790
elseif (NOT CLR_CMAKE_HOST_BROWSER)
791
+ # This is a workaround for upstream issue: https://gitlab.kitware.com/cmake/cmake/-/issues/22995.
792
+ #
793
+ # In Clang.cmake, the decision to use single or double hyphen for target and gcc-toolchain
794
+ # is made based on CMAKE_${LANG}_COMPILER_VERSION, but CMAKE_ASM_COMPILER_VERSION is empty
795
+ # so it picks up single hyphen options, which new clang versions don't recognize.
796
+ set (CMAKE_ASM_COMPILER_VERSION "${CMAKE_C_COMPILER_VERSION}")
797
+
798
enable_language(ASM)
799
800
endif(CLR_CMAKE_HOST_WIN32)
0 commit comments