From db35939ad123b7fe0f3419bf39607a5c8ee329ff Mon Sep 17 00:00:00 2001 From: Francesco Biscani Date: Mon, 2 Sep 2024 21:53:22 +0200 Subject: [PATCH] Tentative Windows fix. --- src/llvm_state.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/llvm_state.cpp b/src/llvm_state.cpp index da7908e14..52f71cc56 100644 --- a/src/llvm_state.cpp +++ b/src/llvm_state.cpp @@ -309,17 +309,17 @@ llvm::orc::JITTargetMachineBuilder create_jit_tmb(unsigned opt_level, code_model // LCOV_EXCL_START -#if LLVM_VERSION_MAJOR >= 17 - // NOTE: the code model setup is working only on LLVM>=19 (or at least // LLVM 18 + patches, as in the conda-forge LLVM package), due to this bug: // // https://github.com/llvm/llvm-project/issues/88115 // // Additionally, there are indications from our CI that attempting to set - // the code model before LLVM 17 might just be buggy, as we see widespread + // the code model before LLVM 17 or on Windows might just be buggy, as we see widespread // ASAN failures all over the place. Thus, let us not do anything with the code - // model setting before LLVM 17. + // model setting before LLVM 17 or on Windows. + +#if LLVM_VERSION_MAJOR >= 17 && !defined(_WIN32) // Setup the code model. switch (c_model) {