Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Commit

Permalink
Add environment variable SULONG_USE_RUSTC.
Browse files Browse the repository at this point in the history
  • Loading branch information
anatol1234 committed Dec 20, 2017
1 parent 2eedede commit 6e11cbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ tool) 3.8 - v5.0 installed. Sulong also depends on `libc++`, `libc++abi`

curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain none

This will download the Rust toolchain installer `rustup`, which in turn will automatically install the correct Rust toolchain upon building Sulong.
This will download the Rust toolchain installer `rustup`, which in turn will automatically install the correct Rust toolchain upon building Sulong. You can prohibit Sulong from using an available Rust installation by setting `SULONG_USE_RUSTC` to `false`.
For a full list of external dependencies on Ubuntu you can look at our
Travis configuration.

Expand Down
2 changes: 1 addition & 1 deletion mx.sulong/mx_sulong.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def dragonEggGPP(args=None):

def checkRust():
"""checks if a Rust installation is available; tries to install the active toolchain if it is missing"""
if not which('rustc'):
if os.environ.get('SULONG_USE_RUSTC', 'true') == 'false' or not which('rustc'):
return False

rustc = subprocess.Popen(['rustc', '--version'], stdout=subprocess.PIPE)
Expand Down

0 comments on commit 6e11cbc

Please sign in to comment.