update env to reflect latest feat/build-improvements
This commit is contained in:
parent
ed8551b23c
commit
be7ab15064
18
env.sh
18
env.sh
|
@ -16,12 +16,20 @@ export NIM_COMMIT="${NIM_COMMIT:-${NIM_VERSION}}"
|
||||||
export NIM_REPO="${NIM_REPO:-${NIM_REPO_URL}}"
|
export NIM_REPO="${NIM_REPO:-${NIM_REPO_URL}}"
|
||||||
|
|
||||||
if ! [ -f "$ENV_FILE" ]; then
|
if ! [ -f "$ENV_FILE" ]; then
|
||||||
# Before the first "make update", the env file doesn't exist, so just run
|
# Before the first "make update", the env file doesn't exist.
|
||||||
# the command that comes after (without a child shell), if any. Running
|
echo "Nimbus build system env file not found."
|
||||||
# ./env.sh make update will cause the right compiler to be built right from
|
# If more than one argument is passed, we assume it's a command to run.
|
||||||
# the start.
|
# Probably "make update".
|
||||||
echo "Nimbus env file not found"
|
if [ $# -gt 0 ]; then
|
||||||
"$@"
|
"$@"
|
||||||
|
# Otherwise just print a little reminder to the user.
|
||||||
|
else
|
||||||
|
echo "You need to run: "
|
||||||
|
echo " "
|
||||||
|
echo " ./env.sh make -j{CPU_CORES} update"
|
||||||
|
echo " "
|
||||||
|
echo "to build the compiler. "
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
source "${ENV_FILE}"
|
source "${ENV_FILE}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue