Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
spack
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EBRAINS RI
Tech Hub
Platform
EBRAINS Software Distribution
spack
Commits
aeccba8b
Commit
aeccba8b
authored
1 year ago
by
Harmen Stoppels
Committed by
Harmen Stoppels
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
build_environment: fix ccache error handling (#44740)
parent
d94e8ab3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/spack/spack/build_environment.py
+2
-4
2 additions, 4 deletions
lib/spack/spack/build_environment.py
with
2 additions
and
4 deletions
lib/spack/spack/build_environment.py
+
2
−
4
View file @
aeccba8b
...
...
@@ -72,6 +72,7 @@
import
spack.store
import
spack.subprocess_context
import
spack.user_environment
import
spack.util.executable
import
spack.util.path
import
spack.util.pattern
from
spack
import
traverse
...
...
@@ -481,10 +482,7 @@ def set_wrapper_variables(pkg, env):
# Find ccache binary and hand it to build environment
if
spack
.
config
.
get
(
"
config:ccache
"
):
ccache
=
Executable
(
"
ccache
"
)
if
not
ccache
:
raise
RuntimeError
(
"
No ccache binary found in PATH
"
)
env
.
set
(
SPACK_CCACHE_BINARY
,
ccache
)
env
.
set
(
SPACK_CCACHE_BINARY
,
spack
.
util
.
executable
.
which_string
(
"
ccache
"
,
required
=
True
))
# Gather information about various types of dependencies
link_deps
=
set
(
pkg
.
spec
.
traverse
(
root
=
False
,
deptype
=
(
"
link
"
)))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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