message: Use --start-group/--end-group to break circular library dependencies.
diff: @@ -437,6 +437,11 @@ if (ISPC_USE_ASAN)
  target_link_options(${PROJECT_NAME} PUBLIC -fsanitize=address)
  endif()
  +if (NOT WIN32 AND NOT APPLE)
  + # To resolve circular dependencies between libraries use --start-group/--end-group
  + target_link_libraries(${PROJECT_NAME} "-Wl,--start-group")
  +endif()
  +
  # Link against Clang libraries
  foreach(clangLib ${CLANG_LIBRARY_LIST})
  find_library(${clangLib}Path NAMES ${clangLib} HINTS ${LLVM_LIBRARY_DIRS})
  @@ -456,6 +461,10 @@ if (GENX_ENABLED)
  target_link_libraries(${PROJECT_NAME} ${GEN_LIBRARY_FULL_PATH_LIST})
  endif()
  +if (NOT WIN32 AND NOT APPLE)
  + target_link_libraries(${PROJECT_NAME} "-Wl,--end-group")
  +endif()
  +
  # System libraries, our own and transitive dependencies from LLVM libs.
  if (WIN32)
  target_link_libraries(${PROJECT_NAME} version.lib shlwapi.lib odbc32.lib odbccp32.lib)
  