File: zstd.patch

package info (click to toggle)
lfortran 0.61.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 61,892 kB
  • sloc: cpp: 181,767; f90: 92,175; python: 17,616; ansic: 10,170; yacc: 2,377; sh: 1,444; fortran: 892; makefile: 38; javascript: 15
file content (28 lines) | stat: -rw-r--r-- 942 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: Find ZSTD when building without LLVM, too
 Needed for compilation on platforms where libunwind is not present
 or working; eg armhf
Author: Alastaiir McKinstry <mckinstry@debian.org>
Last-Updated: 2026-01-31
Forwarded: no

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -216,12 +216,13 @@
     set(HAVE_LFORTRAN_UNWIND yes)
 endif()
 
+set(WITH_ZSTD yes CACHE BOOL "Detect (and require) libzstd for LLVM")
+set(USE_DYNAMIC_ZSTD no CACHE BOOL "Use dynamic ZSTD library (default: static)")
+if(WITH_ZSTD)
+    find_package(LFortranZSTD REQUIRED)
+endif()
+
 if (WITH_LLVM)
-    set(WITH_ZSTD yes CACHE BOOL "Detect (and require) libzstd for LLVM")
-    set(USE_DYNAMIC_ZSTD no CACHE BOOL "Use dynamic ZSTD library (default: static)")
-    if(WITH_ZSTD)
-        find_package(LFortranZSTD REQUIRED)
-    endif()
 
     set(LFORTRAN_LLVM_COMPONENTS core support mcjit orcjit native asmparser asmprinter)
     if (WITH_LLVM_STACKTRACE)