summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2022-07-12 14:16:31 +0200
committerGitHub <noreply@github.com>2022-07-12 14:16:31 +0200
commitd904a789d528a4a73d4ead26660df8e424df29cf (patch)
tree01a065411d16c6de7ca84eb584e6ba2ce356af48 /lib
parent7917f87c639e72ae81b6a600e49ff4026d8f8f1c (diff)
downloadspack-d904a789d528a4a73d4ead26660df8e424df29cf.tar.gz
spack-d904a789d528a4a73d4ead26660df8e424df29cf.tar.bz2
spack-d904a789d528a4a73d4ead26660df8e424df29cf.tar.xz
spack-d904a789d528a4a73d4ead26660df8e424df29cf.zip
env depfile: add missing touch (#31494)
Oversight in #31433, the non-phony `env` target was missing a file being created for it, which can cause make to infinitely loop when including multiple generated makefiles.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/env.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/spack/spack/cmd/env.py b/lib/spack/spack/cmd/env.py
index daf57a0e0b..17926a900a 100644
--- a/lib/spack/spack/cmd/env.py
+++ b/lib/spack/spack/cmd/env.py
@@ -594,6 +594,7 @@ def env_depfile(args):
{}: {}
{}: {}
+\t@touch $@
{}:
\t@mkdir -p {}