forked from easybuilders/easybuild-easyconfigs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
{lang}[GCCcore/10.2.0] Rust bumped to 1.52.1, required for artic easy…
- 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.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
easybuild/easyconfigs/r/Rust/Rust-1.52.1-GCCcore-10.2.0.eb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |