Skip to content

Commit ea60e01

Browse files
committed
by->from, the
Signed-off-by: Harmen Stoppels <me@harmenstoppels.nl>
1 parent 9095e8c commit ea60e01

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

cc.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,13 @@ if eval "[ \"\${*#*${lsep}}\" != \"\$*\" ]"; then
201201
die "Compiler command line contains our separator ('${lsep}'). Cannot parse."
202202
fi
203203

204-
# ensure required variables are set (POSIX 2.6.2 ${parameter:?word})
205-
: "${SPACK_COMPILER_WRAPPER_PATH:?Error: compiler wrapper must be invoked by Spack}"
206-
: "${SPACK_DEBUG_LOG_DIR:?Error: compiler wrapper must be invoked by Spack}"
207-
: "${SPACK_DEBUG_LOG_ID:?Error: compiler wrapper must be invoked by Spack}"
208-
: "${SPACK_SHORT_SPEC:?Error: compiler wrapper must be invoked by Spack}"
209-
: "${SPACK_SYSTEM_DIRS:?Error: compiler wrapper must be invoked by Spack}"
210-
: "${SPACK_MANAGED_DIRS:?Error: compiler wrapper must be invoked by Spack}"
204+
# Ensure required variables are set
205+
: "${SPACK_COMPILER_WRAPPER_PATH:?Error: the compiler wrapper must be invoked from Spack}"
206+
: "${SPACK_DEBUG_LOG_DIR:?Error: the compiler wrapper must be invoked from Spack}"
207+
: "${SPACK_DEBUG_LOG_ID:?Error: the compiler wrapper must be invoked from Spack}"
208+
: "${SPACK_SHORT_SPEC:?Error: the compiler wrapper must be invoked from Spack}"
209+
: "${SPACK_SYSTEM_DIRS:?Error: the compiler wrapper must be invoked from Spack}"
210+
: "${SPACK_MANAGED_DIRS:?Error: the compiler wrapper must be invoked from Spack}"
211211

212212
# eval this because SPACK_MANAGED_DIRS and SPACK_SYSTEM_DIRS are inputs we don't wanna loop over.
213213
# moving the eval inside the function would eval it every call.

test/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,8 @@ test_no_wrapper_environment() {
358358
fail "cc with no env unexpectedly exited 0"
359359
fi
360360
case "$_out" in
361-
*"compiler wrapper must be invoked by Spack"*) ;;
362-
*) fail "expected 'compiler wrapper must be invoked by Spack' in: $_out" ;;
361+
*"compiler wrapper must be invoked from Spack"*) ;;
362+
*) fail "expected 'compiler wrapper must be invoked from Spack' in: $_out" ;;
363363
esac
364364
}
365365

0 commit comments

Comments
 (0)