Skip to content

Commit 1d1ea28

Browse files
Merge pull request #27381 from zapashcanon/conf
add some conf packages
2 parents ee5ed3d + a59548b commit 1d1ea28

File tree

3 files changed

+79
-0
lines changed
  • packages
    • conf-lld/conf-lld.1
    • conf-rust-llvm/conf-rust-llvm.1
    • conf-rust-wasm/conf-rust-wasm.1

3 files changed

+79
-0
lines changed

packages/conf-lld/conf-lld.1/opam

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
opam-version: "2.0"
2+
maintainer: "Léo Andrès <[email protected]>"
3+
authors: "The LLVM team"
4+
homepage: "http://llvm.org"
5+
bug-reports: "https://llvm.org/bugs/"
6+
license: "MIT"
7+
build: [
8+
["wasm-ld" "-version"]
9+
]
10+
depends: [
11+
]
12+
depexts: [
13+
["lld"] { os-family = "alpine" }
14+
["lld"] { os-family = "arch" }
15+
["lld"] { os-family = "debian" }
16+
["lld"] { os-family = "opensuse" }
17+
["lld"] { os-family = "suse" }
18+
["lld"] { os-family = "ubuntu" }
19+
20+
["lld"] { os-distribution = "centos" }
21+
["lld"] { os-distribution = "fedora" }
22+
["llvm" "lld"] { os-distribution = "homebrew" }
23+
]
24+
x-ci-accept-failures: [
25+
"ubuntu-20.04" # does not have wasm-ld
26+
]
27+
available: os-distribution != "freebsd"
28+
synopsis: "Virtual package relying on lld installation"
29+
flags: conf
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
opam-version: "2.0"
2+
maintainer: "Léo Andrès <[email protected]>"
3+
authors: "Léo Andrès <[email protected]>"
4+
homepage: "https://github.com/ocaml/opam-repository"
5+
bug-reports: "https://github.com/ocaml/opam-repository/issues"
6+
license: "MIT"
7+
build: [
8+
["which" "rust-lld"] { os-distribution != "homebrew" }
9+
]
10+
depends: [
11+
"conf-which" {build}
12+
"conf-rust"
13+
"conf-llvm"
14+
"conf-lld"
15+
]
16+
depexts: [
17+
["rust-llvm"] { os-family = "alpine" }
18+
["rust-llvm"] { os-family = "arch" }
19+
["rust-llvm"] { os-family = "debian" }
20+
["rust-llvm"] { os-family = "ubuntu" }
21+
["rust-llvm"] { os-family = "opensuse" }
22+
["rust-llvm"] { os-family = "suse" }
23+
["rust-llvm"] { os-distribution = "centos" }
24+
]
25+
x-ci-accept-failures: os-distribution = "freebsd" | os-distribution = "fedora"
26+
synopsis: "Virtual package relying on an installation of the integration of Rust with LLVM tools"
27+
flags: conf
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
opam-version: "2.0"
2+
maintainer: "Léo Andrès <[email protected]>"
3+
authors: "Léo Andrès <[email protected]>"
4+
homepage: "https://github.com/ocaml/opam-repository"
5+
bug-reports: "https://github.com/ocaml/opam-repository/issues"
6+
license: "MIT"
7+
build: [
8+
["sh" "-c" "rustc --print target-list | grep -q 'wasm32-unknown-unknown'" ]
9+
]
10+
depends: [
11+
"conf-rust" {build}
12+
]
13+
depexts: [
14+
["rust-wasm"] { os-family = "alpine" }
15+
["rust-wasm"] { os-family = "arch" }
16+
["libstd-rust-dev-wasm32"] { os-family = "debian" }
17+
["libstd-rust-dev-wasm32"] { os-family = "ubuntu" }
18+
19+
["libstd-rust-dev-wasm32"] { os-distribution = "centos" }
20+
["rust-std-static-wasm32-unknown-unknown"] { os-distribution = "fedora" }
21+
]
22+
synopsis: "Virtual package relying on an installation of standard Rust libraries including development files, needed to cross-compile Rust programs to the wasm32-unknown-unknown and wasm32-wasip1/wasm32-wasip2 targets"
23+
flags: conf

0 commit comments

Comments
 (0)