Skip to content

Commit

Permalink
{lang}[GCCcore/10.2.0] Rust bumped to 1.52.1, required for artic easy…
Browse files Browse the repository at this point in the history
  • Loading branch information
Sassy authored and Sassy committed Sep 15, 2021
1 parent 48b4865 commit b308678
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions easybuild/easyconfigs/r/Rust/Rust-1.52.1-GCCcore-10.2.0.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
easyblock = 'ConfigureMake'

name = 'Rust'
version = '1.52.1'

homepage = 'https://www.rust-lang.org'
description = """Rust is a systems programming language that runs blazingly fast, prevents segfaults,
and guarantees thread safety."""

toolchain = {'name': 'GCCcore', 'version': '10.2.0'}

source_urls = ['https://static.rust-lang.org/dist/']
sources = ['rustc-%(version)s-src.tar.gz']
checksums = ['3a6f23a26d0e8f87abbfbf32c5cd7daa0c0b71d0986abefc56b9a5fbfbd0bf98']

builddependencies = [
('binutils', '2.35'),
('CMake', '3.18.4'),
]

dependencies = [
('OpenSSL', '1.1', '', True),
]

configopts = "--enable-extended --sysconfdir=%(installdir)s/etc "

# avoid build dependency on Ninja, which requires Python,
# since Rust is a build dependency for cryptography that is included with Python
configopts += "--set=llvm.ninja=false "

# avoid failure when home directory is an NFS mount,
# see https://github.com/rust-lang/cargo/issues/6652
prebuildopts = "export CARGO_HOME=%(builddir)s/cargo && "
preinstallopts = prebuildopts

sanity_check_paths = {
'files': ['bin/cargo', 'bin/rustc', 'bin/rustdoc'],
'dirs': ['lib/rustlib', 'share/doc', 'share/man'],
}

sanity_check_commands = [
"cargo --version",
"rustc --version",
]

moduleclass = 'lang'

0 comments on commit b308678

Please sign in to comment.