summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn W. Parent <45471568+johnwparent@users.noreply.github.com>2024-02-21 13:18:25 -0500
committerGitHub <noreply@github.com>2024-02-21 10:18:25 -0800
commit7d728822f0a5073077e6980c10377955f62a29fb (patch)
treeed41e5accaa258363e30e7152f447c60dc29f4f4 /lib
parente96640d2b9faf4b1f1ce73a630c9d5e718a471a1 (diff)
downloadspack-7d728822f0a5073077e6980c10377955f62a29fb.tar.gz
spack-7d728822f0a5073077e6980c10377955f62a29fb.tar.bz2
spack-7d728822f0a5073077e6980c10377955f62a29fb.tar.xz
spack-7d728822f0a5073077e6980c10377955f62a29fb.zip
Windows: fix error with can_symlink check (#42753)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/llnl/util/symlink.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/spack/llnl/util/symlink.py b/lib/spack/llnl/util/symlink.py
index 229f3f8115..ec45787a96 100644
--- a/lib/spack/llnl/util/symlink.py
+++ b/lib/spack/llnl/util/symlink.py
@@ -189,6 +189,7 @@ def _windows_can_symlink() -> bool:
import llnl.util.filesystem as fs
fs.touchp(fpath)
+ fs.mkdirp(dpath)
try:
os.symlink(dpath, dlink)