From 4f0716ab1327eeb73a5d83e950d04820b59f932a Mon Sep 17 00:00:00 2001 From: vssukharev Date: Sun, 5 Jan 2025 13:57:32 +0200 Subject: [PATCH] Fix issue when building on NixOS, firstly occured under commit 819a85ee --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index aeafecb02..782049a67 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -150,7 +150,7 @@ if(C3_WITH_LLVM) endif() endif() - if (NOT WIN32) + if (EXISTS /usr/lib) # Some systems (such as Alpine Linux) seem to put some of the relevant # LLVM files in /usr/lib, but this doesn't seem to be included in the # value of LLVM_LIBRARY_DIRS.