File tree 4 files changed +10
-3
lines changed 4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -581,7 +581,9 @@ set(LLVM_TARGETS_TO_BUILD
581
581
${LLVM_EXPERIMENTAL_TARGETS_TO_BUILD} )
582
582
list (REMOVE_DUPLICATES LLVM_TARGETS_TO_BUILD)
583
583
584
- option (LLVM_ENABLE_PIC "Build Position-Independent Code" ON )
584
+ if (NOT CMAKE_SYSTEM_NAME MATCHES "OS390" )
585
+ option (LLVM_ENABLE_PIC "Build Position-Independent Code" ON )
586
+ endif ()
585
587
option (LLVM_ENABLE_MODULES "Compile with C++ modules enabled." OFF )
586
588
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
587
589
option (LLVM_ENABLE_MODULE_DEBUGGING "Compile with -gmodules." ON )
@@ -1127,6 +1129,8 @@ if (CMAKE_SYSTEM_NAME MATCHES "OS390")
1127
1129
add_compile_definitions (_XOPEN_SOURCE=600)
1128
1130
add_compile_definitions (_OPEN_SYS) # Needed for process information.
1129
1131
add_compile_definitions (_OPEN_SYS_FILE_EXT) # Needed for EBCDIC I/O.
1132
+ add_compile_definitions (_EXT) # Needed for file data.
1133
+ add_compile_definitions ("-D_UNIX03_THREADS" ) # Multithreading support.
1130
1134
endif ()
1131
1135
1132
1136
# Build with _FILE_OFFSET_BITS=64 on Solaris to match g++ >= 9.
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ if( NOT LLVM_REQUIRES_RTTI )
6
6
endif ()
7
7
endif ()
8
8
9
- if (WIN32 OR CYGWIN )
9
+ if (WIN32 OR CYGWIN OR ZOS )
10
10
set (LLVM_LINK_COMPONENTS Core Support)
11
11
endif ()
12
12
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ if( NOT LLVM_REQUIRES_RTTI )
10
10
endif ()
11
11
endif ()
12
12
13
- if (WIN32 OR CYGWIN )
13
+ if (WIN32 OR CYGWIN OR ZOS )
14
14
set (LLVM_LINK_COMPONENTS Core Support)
15
15
endif ()
16
16
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ if(LLVM_BUILD_LLVM_DYLIB)
14
14
if (MSVC )
15
15
message (FATAL_ERROR "Generating libLLVM is not supported on MSVC" )
16
16
endif ()
17
+ if (ZOS)
18
+ message (FATAL_ERROR "Generating libLLVM is not supported on z/OS" )
19
+ endif ()
17
20
18
21
llvm_map_components_to_libnames(LIB_NAMES ${LLVM_DYLIB_COMPONENTS} )
19
22
You can’t perform that action at this time.
0 commit comments