We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68b863b commit 034912dCopy full SHA for 034912d
llvm/CMakeLists.txt
@@ -1158,6 +1158,11 @@ if (CMAKE_SYSTEM_NAME MATCHES "OS390")
1158
add_compile_definitions(_OPEN_SYS_FILE_EXT) # Needed for EBCDIC I/O.
1159
add_compile_definitions(_EXT) # Needed for file data.
1160
add_compile_definitions(_UNIX03_THREADS) # Multithreading support.
1161
+ # Need to build LLVM as ASCII application.
1162
+ # This can't be a global setting because other projects may
1163
+ # need to be built in EBCDIC mode.
1164
+ append("-fzos-le-char-mode=ascii" CMAKE_CXX_FLAGS CMAKE_C_FLAGS)
1165
+ append("-m64" CMAKE_CXX_FLAGS CMAKE_C_FLAGS)
1166
endif()
1167
1168
# Build with _FILE_OFFSET_BITS=64 on Solaris to match g++ >= 9.
0 commit comments