Skip to content

Commit

Permalink
Disable multi-threading for a Windows based OS.
Browse files Browse the repository at this point in the history
This is a workaround for suspicious crashes/hanging ups happening
with lld-as-a-library.
TODO: ##677, needs to figure out exact reason.
  • Loading branch information
PavelKopyl committed Aug 12, 2024
1 parent f4cbe90 commit 6140a05
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion llvm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6140a05

Please sign in to comment.