[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
Tue May 16 11:37:03 PDT 2023
mstorsjo created this revision.
mstorsjo added a reviewer: tianshilei1992.
Herald added subscribers: sunshaoce, guansong, yaxunl.
Herald added a project: All.
mstorsjo requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: jplehr, sstefan1.
Herald added a project: OpenMP.
By building the assembly with language ASM now, this shouldn't be
needed.
Repository:
rG LLVM Github Monorepo
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.522728.patch
Type: text/x-patch
Size: 1156 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20230516/c0981cf5/attachment.bin>
More information about the Openmp-commits
mailing list