[llvm] 034912d - [SystemZ][z/OS] Build in ASCII 64 bit mode on z/OS (#90630)

via llvm-commits llvm-commits at lists.llvm.org
Wed May 1 05:13:14 PDT 2024


Author: Fanbo Meng
Date: 2024-05-01T08:13:10-04:00
New Revision: 034912d583617a7029c8efaade4422eaa4593f8c

URL: https://github.com/llvm/llvm-project/commit/034912d583617a7029c8efaade4422eaa4593f8c
DIFF: https://github.com/llvm/llvm-project/commit/034912d583617a7029c8efaade4422eaa4593f8c.diff

LOG: [SystemZ][z/OS] Build in ASCII 64 bit mode on z/OS (#90630)

Setting the correct build flags on z/OS to build LLVM as 64-bit ASCII
application.

Added: 
    

Modified: 
    llvm/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index 9163729e946eb8..b7b158996c2323 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -1158,6 +1158,11 @@ if (CMAKE_SYSTEM_NAME MATCHES "OS390")
   add_compile_definitions(_OPEN_SYS_FILE_EXT) # Needed for EBCDIC I/O.
   add_compile_definitions(_EXT) # Needed for file data.
   add_compile_definitions(_UNIX03_THREADS) # Multithreading support.
+  # Need to build LLVM as ASCII application.
+  # This can't be a global setting because other projects may
+  # need to be built in EBCDIC mode.
+  append("-fzos-le-char-mode=ascii" CMAKE_CXX_FLAGS CMAKE_C_FLAGS)
+  append("-m64" CMAKE_CXX_FLAGS CMAKE_C_FLAGS)
 endif()
 
 # Build with _FILE_OFFSET_BITS=64 on Solaris to match g++ >= 9.


        


More information about the llvm-commits mailing list