From 6140a0504c49ee95f501f6854d33f7de56c85686 Mon Sep 17 00:00:00 2001 From: Pavel Kopyl Date: Thu, 8 Aug 2024 17:31:43 +0200 Subject: [PATCH] Disable multi-threading for a Windows based OS. This is a workaround for suspicious crashes/hanging ups happening with lld-as-a-library. TODO: ##677, needs to figure out exact reason. --- llvm/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index c89270640a60..bbe46e3b2079 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -517,7 +517,10 @@ option(LLVM_ENABLE_LIBEDIT "Use libedit if available." ON) option(LLVM_ENABLE_LIBPFM "Use libpfm for performance counters if available." ON) # On z/OS, threads cannot be used because TLS is not supported. -if (CMAKE_SYSTEM_NAME MATCHES "OS390") +# EraVM local begin +# TODO: #677, investigate hanging up of solidity-compiler tests on windows. +if (CMAKE_SYSTEM_NAME MATCHES "OS390" OR CMAKE_SYSTEM_NAME MATCHES "Windows") +# EraVM local end option(LLVM_ENABLE_THREADS "Use threads if available." OFF) else() option(LLVM_ENABLE_THREADS "Use threads if available." ON)