File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -245,6 +245,8 @@ check_cxx_compiler_flag("-UTESTFLAG" FLANG_RT_SUPPORTS_UNDEFINE_FLAG)
245245# Check whether -fno-lto is supported.
246246check_cxx_compiler_flag(-fno-lto FLANG_RT_HAS_FNO_LTO_FLAG)
247247
248+ # Search for pthread library
249+ find_package (Threads REQUIRED)
248250
249251# function checks
250252find_package (Backtrace)
Original file line number Diff line number Diff line change @@ -142,7 +142,6 @@ function (add_flangrt_library name)
142142 endif ()
143143 if (build_shared)
144144 add_library ("${name_shared} " SHARED ${extra_args} ${ARG_ADDITIONAL_HEADERS} ${ARG_UNPARSED_ARGUMENTS} )
145- find_package (Threads REQUIRED)
146145 target_link_libraries (${name_shared} PUBLIC Threads::Threads)
147146 endif ()
148147
You can’t perform that action at this time.
0 commit comments