[flang-commits] [flang] 8e20cb6 - flang: break the build on 32bit systems

Sylvestre Ledru via flang-commits flang-commits at lists.llvm.org
Fri Jan 6 08:14:20 PST 2023


Author: Sylvestre Ledru
Date: 2023-01-06T17:14:03+01:00
New Revision: 8e20cb6bb8d0b6cf91cc25204eb29620a5040ba4

URL: https://github.com/llvm/llvm-project/commit/8e20cb6bb8d0b6cf91cc25204eb29620a5040ba4
DIFF: https://github.com/llvm/llvm-project/commit/8e20cb6bb8d0b6cf91cc25204eb29620a5040ba4.diff

LOG: flang: break the build on 32bit systems

Reviewed By: PeteSteinfeld

Differential Revision: https://reviews.llvm.org/D141132

Added: 
    

Modified: 
    flang/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/flang/CMakeLists.txt b/flang/CMakeLists.txt
index e4ae506f9d1e..b048ea220e20 100644
--- a/flang/CMakeLists.txt
+++ b/flang/CMakeLists.txt
@@ -55,6 +55,10 @@ if (MSVC AND CMAKE_CXX_COMPILER_ID MATCHES Clang)
   endif()
 endif()
 
+if(CMAKE_SIZEOF_VOID_P EQUAL 4)
+  message(FATAL_ERROR "flang isn't supported on 32 bit CPUs")
+endif()
+
 if (FLANG_STANDALONE_BUILD)
   set(FLANG_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
   if (NOT MSVC_IDE)


        


More information about the flang-commits mailing list