[Openmp-commits] [PATCH] D150701: [OpenMP] Remove the workaround of passing "-x assembler-with-cpp" manually
Martin Storsjö via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jul 7 13:33:27 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf105c1dc58ee: [OpenMP] Remove the workaround of passing "-x assembler-with-cpp" manually (authored by mstorsjo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150701/new/
https://reviews.llvm.org/D150701
Files:
openmp/runtime/cmake/LibompHandleFlags.cmake
openmp/runtime/cmake/config-ix.cmake
Index: openmp/runtime/cmake/config-ix.cmake
===================================================================
--- openmp/runtime/cmake/config-ix.cmake
+++ 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)
Index: openmp/runtime/cmake/LibompHandleFlags.cmake
===================================================================
--- openmp/runtime/cmake/LibompHandleFlags.cmake
+++ 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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150701.538241.patch
Type: text/x-patch
Size: 1156 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20230707/ead2a97f/attachment.bin>
More information about the Openmp-commits
mailing list