diff --git a/openmp/runtime/cmake/LibompHandleFlags.cmake b/openmp/runtime/cmake/LibompHandleFlags.cmake --- a/openmp/runtime/cmake/LibompHandleFlags.cmake +++ b/openmp/runtime/cmake/LibompHandleFlags.cmake @@ -80,7 +80,6 @@ # Assembler flags function(libomp_get_asmflags asmflags) set(asmflags_local) - libomp_append(asmflags_local "-x assembler-with-cpp" LIBOMP_HAVE_X_ASSEMBLER_WITH_CPP_FLAG) # Architectural assembler flags if(${IA32}) if(CMAKE_SIZEOF_VOID_P EQUAL 8) diff --git a/openmp/runtime/cmake/config-ix.cmake b/openmp/runtime/cmake/config-ix.cmake --- a/openmp/runtime/cmake/config-ix.cmake +++ b/openmp/runtime/cmake/config-ix.cmake @@ -96,11 +96,6 @@ ) endforeach() endforeach() -else() - # It is difficult to create a dummy assembly file that compiles into an - # executable for every architecture and then check the C compiler to - # see if -x assembler-with-cpp exists and works, so we assume it does for non-Windows. - set(LIBOMP_HAVE_X_ASSEMBLER_WITH_CPP_FLAG TRUE) endif() if(${LIBOMP_FORTRAN_MODULES}) libomp_check_fortran_flag(-m32 LIBOMP_HAVE_M32_FORTRAN_FLAG)