We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f10f4d7 commit afb4080Copy full SHA for afb4080
setuptools_rust/build.py
@@ -216,7 +216,7 @@ def build_extension(self, ext):
216
"rust build failed; unable to find executable in %s" % target_dir
217
)
218
else:
219
- if sys.platform == "win32":
+ if sys.platform == "win32" or sys.platform == "cygwin":
220
dylib_ext = "dll"
221
elif sys.platform == "darwin":
222
dylib_ext = "dylib"
@@ -282,7 +282,7 @@ def build_extension(self, ext):
282
except subprocess.CalledProcessError as e:
283
pass
284
285
- if executable:
+ if executable or sys.platform == "win32" or sys.platform == "cygwin":
286
mode = os.stat(ext_path).st_mode
287
mode |= (mode & 0o444) >> 2 # copy R bits to X
288
os.chmod(ext_path, mode)
0 commit comments