Skip to content

Commit 1565c64

Browse files
authored
Fix chmod check on Windows (#7)
1 parent ebdc250 commit 1565c64

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/wrappers/x86_64-w64-mingw32.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ JLLWrappers.@declare_library_product(libxprs, "xprs.dll")
77
function __init__()
88
JLLWrappers.@generate_init_header()
99
# There's a permission error with the conda binaries
10-
chmod(dirname(dirname(artifact_dir)), 0o755; recursive = true)
10+
if (stat(artifact_dir).mode & 0o777) != 0o755
11+
chmod(artifact_dir, 0o755; recursive = true)
12+
end
1113
JLLWrappers.@init_library_product(
1214
libxprs,
1315
"Lib\\site-packages\\xpress\\lib\\xprs.dll",

0 commit comments

Comments
 (0)