aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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:
ef='#n106'>106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168