aboutsummaryrefslogtreecommitdiffstats
path: root/ext.wscript
diff options
context:
space:
mode:
Diffstat (limited to 'ext.wscript')
-rw-r--r--ext.wscript5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext.wscript b/ext.wscript
index 5f9e0c3..e1d71c7 100644
--- a/ext.wscript
+++ b/ext.wscript
@@ -7,8 +7,9 @@ from waflib.extras import autowaf as autowaf
# A rule for making a link in the build directory to a source file
def link(task):
- func = os.symlink
- if not func:
+ if hasattr(os, 'symlink'):
+ func = os.symlink
+ else:
func = shutil.copy # Symlinks unavailable, make a copy
try: