this repo has no description
1opam-version: "2.0"
2maintainer: "Ivan Gotovchits <ivg@ieee.org>"
3homepage: "http://llvm.org"
4authors: "The LLVM Team"
5bug-reports: "https://llvm.org/bugs/"
6license: "BSD"
7build: [
8 ["ocaml" "unix.cma" "find-llvm.ml"]
9]
10depends: [
11 "ocaml" {>= "4.09.0"}
12 "base-unix"
13 "conf-which" {build}
14]
15depexts: [
16
17 # debian
18 ["llvm-7-dev"] {os-distribution = "debian" & os-version < "11"}
19 ["llvm-9-dev"] {os-distribution = "debian" & os-version >= "11"}
20
21 # ubuntu
22 ["llvm-3.8-dev"] {os-distribution = "ubuntu" & os-version = "14.04"} #trusty
23 ["llvm-8-dev"] {os-distribution = "ubuntu" & os-version = "16.04"} #xenial
24 ["llvm-9-dev"] {os-distribution = "ubuntu" & os-version = "18.04"} #bionic
25 ["llvm-10-dev"] {os-distribution = "ubuntu" & os-version = "20.04"} #focal
26
27 # fedora
28 ["llvm-devel" "llvm-static"] {os-distribution = "fedora"}
29
30 # macos
31 ["llvm-6.0"] {os = "macos" & os-distribution = "macports"}
32 ["llvm@9"] {os = "macos" & os-distribution = "homebrew"}
33
34 #alpine
35 ["llvm-dev" "llvm-static"] {os-distribution = "alpine"}
36]
37
38substs: [ "find-llvm.ml" ]
39flags: [ conf ]
40
41synopsis: "Checks if a supported version of LLVM is installed"
42description: """
43The supported LLVM versions range from 6.0 to 12.0, bounds including.
44
45A preferred `llvm-config` can be choosen by setting opam config variable:
46```
47opam config set llvm-config your-llvm-config
48```
49OR by setting the `LLVM_CONFIG` environment variable before installation.
50"""
51extra-source "find-llvm.ml.in" {
52 src:
53 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/conf-bap-llvm/find-llvm.ml.in.1.7"
54 checksum: [
55 "sha256=4d87104650080f889755efba92f380332c3cedf4db75aa228b3a94da51bf8ac0"
56 "md5=e526957a4e170157fcdaff43896e69b0"
57 ]
58}