From 034912d583617a7029c8efaade4422eaa4593f8c Mon Sep 17 00:00:00 2001 From: Fanbo Meng Date: Wed, 1 May 2024 08:13:10 -0400 Subject: [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. --- llvm/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm') diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index 9163729..b7b1589 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. -- cgit v1.1