Skip to content

Commit dff3b33

Browse files
committed
[Flang] Improve the comments to state the reason why needing Thread.
1 parent 31c8a85 commit dff3b33

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flang-rt/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,9 @@ check_cxx_compiler_flag("-UTESTFLAG" FLANG_RT_SUPPORTS_UNDEFINE_FLAG)
245245
# Check whether -fno-lto is supported.
246246
check_cxx_compiler_flag(-fno-lto FLANG_RT_HAS_FNO_LTO_FLAG)
247247

248-
# Search for pthread library
248+
# Different platform may have different name for the POSIX thread library.
249+
# For example, libpthread.a on AIX. Search for it as it is needed when
250+
# building the shared flang_rt.runtime.so.
249251
find_package(Threads REQUIRED)
250252

251253
# function checks

0 commit comments

Comments
 (0)