aboutsummaryrefslogtreecommitdiff
path: root/meson_install.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-03-08 19:10:52 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2013-03-08 19:10:52 +0200
commitc89aa41a3f715270e0281057aedefb72163e7cf0 (patch)
tree1e63fb8e2722700c43698879a7e3d55dda7c4c7a /meson_install.py
parent3a320036ce836a1cf459e5311f4639bdc272c628 (diff)
downloadmeson-c89aa41a3f715270e0281057aedefb72163e7cf0.zip
meson-c89aa41a3f715270e0281057aedefb72163e7cf0.tar.gz
meson-c89aa41a3f715270e0281057aedefb72163e7cf0.tar.bz2
Unit test pass on Windows.
Diffstat (limited to 'meson_install.py')
-rwxr-xr-xmeson_install.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/meson_install.py b/meson_install.py
index 5baffe5..229ce11 100755
--- a/meson_install.py
+++ b/meson_install.py
@@ -103,8 +103,14 @@ def install_targets(d):
print('Stdout:\n%s\n' % stdo.decode())
print('Stderr:\n%s\n' % stde.decode())
sys.exit(1)
+ printed_symlink_error = False
for alias in aliases:
- os.symlink(fname, os.path.join(outdir, alias))
+ try:
+ os.symlink(fname, os.path.join(outdir, alias))
+ except NotImplementedError:
+ if not printed_symlink_error:
+ print("Symlink creation does not work on this platform.")
+ printed_symlink_error = True
if is_elf_platform():
p = subprocess.Popen([d.depfixer, outname, d.dep_prefix], stdout=subprocess.PIPE,
stderr=subprocess.PIPE)