-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add some conf packages #27381
base: master
Are you sure you want to change the base?
add some conf packages #27381
Changes from all commits
1de7b14
ade8fc4
01b7ac6
cb2c07d
c9f9e0a
4865565
eca6cb9
2720555
cbfbdcf
caca722
6bb3aab
a8783a8
55f5b9c
875c4aa
9555af4
dc4f1d9
e99762a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
opam-version: "2.0" | ||
maintainer: "Léo Andrès <[email protected]>" | ||
authors: "The LLVM team" | ||
homepage: "http://llvm.org" | ||
bug-reports: "https://llvm.org/bugs/" | ||
license: "MIT" | ||
build: [ | ||
["wasm-ld" "-version"] { os-distribution != "homebrew" } | ||
] | ||
depends: [ | ||
] | ||
depexts: [ | ||
["lld"] { os-family = "alpine" } | ||
["lld"] { os-family = "arch" } | ||
["lld"] { os-family = "debian" } | ||
["lld"] { os-family = "opensuse" } | ||
["lld"] { os-family = "suse" } | ||
["lld"] { os-family = "ubuntu" } | ||
|
||
["lld"] { os-distribution = "centos" } | ||
["lld"] { os-distribution = "fedora" } | ||
["llvm"] { os-distribution = "homebrew" } | ||
] | ||
x-ci-accept-failures: [ | ||
"ubuntu-20.04" # does not have wasm-ld | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But it still has older stuff from lld |
||
] | ||
available: os-distribution != "freebsd" | ||
synopsis: "Virtual package relying on lld installation" | ||
flags: conf |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
opam-version: "2.0" | ||
maintainer: "Léo Andrès <[email protected]>" | ||
authors: "Léo Andrès <[email protected]>" | ||
homepage: "https://github.com/ocaml/opam-repository" | ||
bug-reports: "https://github.com/ocaml/opam-repository/issues" | ||
license: "MIT" | ||
build: [ | ||
["which" "rust-lld"] { os-distribution != "homebrew" } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, it's a pain to test on homebrew... but I believe it's good enough as is. |
||
] | ||
depends: [ | ||
"conf-which" {build} | ||
"conf-rust" | ||
"conf-llvm" | ||
"conf-lld" | ||
] | ||
depexts: [ | ||
["rust-llvm"] { os-family = "alpine" } | ||
["rust-llvm"] { os-family = "arch" } | ||
["rust-llvm"] { os-family = "debian" } | ||
["rust-llvm"] { os-family = "ubuntu" } | ||
["rust-llvm"] { os-family = "opensuse" } | ||
["rust-llvm"] { os-family = "suse" } | ||
["rust-llvm"] { os-distribution = "centos" } | ||
] | ||
available: os-distribution != "freebsd" & os-distribution != "fedora" | ||
synopsis: "Virtual package relying on an installation of the integration of Rust with LLVM tools" | ||
flags: conf |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
opam-version: "2.0" | ||
maintainer: "Léo Andrès <[email protected]>" | ||
authors: "Léo Andrès <[email protected]>" | ||
homepage: "https://github.com/ocaml/opam-repository" | ||
bug-reports: "https://github.com/ocaml/opam-repository/issues" | ||
license: "MIT" | ||
build: [ | ||
["sh" "-c" "rustc --print target-list | grep -q 'wasm32-unknown-unknown'" ] | ||
] | ||
depends: [ | ||
"conf-rust" {build} | ||
] | ||
depexts: [ | ||
["rust-wasm"] { os-family = "alpine" } | ||
["rust-wasm"] { os-family = "arch" } | ||
["libstd-rust-dev-wasm32"] { os-family = "debian" } | ||
["libstd-rust-dev-wasm32"] { os-family = "ubuntu" } | ||
|
||
["libstd-rust-dev-wasm32"] { os-distribution = "centos" } | ||
["rust-std-static-wasm32-unknown-unknown"] { os-distribution = "fedora" } | ||
] | ||
available: os-family != "opensuse" & os-family != "suse" & os-distribution != "homebrew" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did not find how to have it on macOS, it seems weird but maybe it's just really lacking behind... |
||
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" | ||
flags: conf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure how to properly test this in homebrew.
Basically, the executable is installed but not in the PATH. One need to do something like
export PATH="$(brew --prefix llvm@15)/bin/:$PATH"
but then, it'll only containslld
which is a generic driver. One should rather invokewasm-ld
but I have no idea where it is located and how to find it.I would say it's good enough in the current state and can be improved later?