Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
0ff059e3
Commit
0ff059e3
authored
Apr 4, 2016
by
Erik Schnetter
Browse files
Options
Downloads
Patches
Plain Diff
Clean up comments and output messages
parent
83d6e04d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/spack/env/cc
+6
-7
6 additions, 7 deletions
lib/spack/env/cc
with
6 additions
and
7 deletions
lib/spack/env/cc
+
6
−
7
View file @
0ff059e3
...
...
@@ -50,7 +50,7 @@ SPACK_SHORT_SPEC"
# The compiler input variables are checked for sanity later:
# SPACK_CC, SPACK_CXX, SPACK_F77, SPACK_FC
# Debug flag is optional; set to
true
for debug logging:
# Debug flag is optional; set to
"TRUE"
for debug logging:
# SPACK_DEBUG
# Test command is used to unit test the compiler script.
# SPACK_TEST_COMMAND
...
...
@@ -66,11 +66,10 @@ function die {
for
param
in
$parameters
;
do
if
[[
-z
${
!param
}
]]
;
then
die
"Spack compiler must be run from
s
pack!
Input
$param
wa
s missing
!
"
die
"Spack compiler must be run from
A
pack! Input
'
$param
' i
s missing
.
"
fi
done
#
# Figure out the type of compiler, the language, and the mode so that
# the compiler script knows what to do.
#
...
...
@@ -78,12 +77,12 @@ done
# 'command' is set based on the input command to $SPACK_[CC|CXX|F77|F90]
#
# 'mode' is set to one of:
# vcheck version check
# cpp preprocess
# cc compile
# as assemble
# ld link
# ccld compile & link
# vcheck version check
command
=
$(
basename
"
$0
"
)
case
"
$command
"
in
...
...
@@ -114,8 +113,8 @@ case "$command" in
;;
esac
# If any of the arguments below
is
present then the mode is vcheck.
In
# vcheck mode, nothing is added in terms of extra search paths or
# If any of the arguments below
are
present
,
then the mode is vcheck.
#
In
vcheck mode, nothing is added in terms of extra search paths or
# libraries.
if
[[
-z
$mode
]]
;
then
for
arg
in
"
$@
"
;
do
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment