Skip to content

Commit 0ff144b

Browse files
committed
Add IBM xlc support
1 parent 4299d1e commit 0ff144b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

flang-rt/cmake/modules/AddFlangRT.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ function (add_flangrt_library name)
7474
target_compile_options(${name} PRIVATE
7575
$<$<COMPILE_LANGUAGE:CXX>:/EHs-c- /GR->
7676
)
77+
elseif (CMAKE_CXX_COMPILER_ID MATCHES "XL")
78+
target_compile_options(${name} PRIVATE
79+
$<$<COMPILE_LANGUAGE:CXX>:-qnoeh -qnortti>
80+
)
7781
endif ()
7882

7983
# Flang-rt's public headers

0 commit comments

Comments
 (0)