Skip to content

Commit

Permalink
Fix import performance issue on Windows (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Jun 18, 2024
1 parent ef5794a commit 7808a85
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Gurobi_jll"
uuid = "c018c7e6-a5b0-4aea-8f80-9c1ef9991411"
authors = ["odow <[email protected]>"]
version = "11.0.2+1"
version = "11.0.2+2"

[deps]
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
Expand Down
12 changes: 6 additions & 6 deletions src/wrappers/x86_64-w64-mingw32.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ JLLWrappers.@declare_executable_product(grbgetkey)

function __init__()
JLLWrappers.@generate_init_header()
# There's a permission error with the conda binaries
chmod(dirname(dirname(artifact_dir)), 0o755; recursive = true)
gurobi_lic = joinpath(artifact_dir, "gurobi.lic")
if isfile(gurobi_lic)
rm(gurobi_lic; force = true)
# While we're at it, there's a permission error with the conda binaries
chmod(dirname(dirname(artifact_dir)), 0o755; recursive = true)
end
JLLWrappers.@init_library_product(
libgurobi,
"gurobi110.dll",
RTLD_LAZY | RTLD_DEEPBIND,
)
JLLWrappers.@init_executable_product(gurobi_cl, "gurobi_cl.exe")
JLLWrappers.@init_executable_product(grbgetkey, "grbgetkey.exe")
gurobi_lic = joinpath(artifact_dir, "gurobi.lic")
if isfile(gurobi_lic)
rm(gurobi_lic; force = true)
end
JLLWrappers.@generate_init_footer()
return
end # __init__()

2 comments on commit 7808a85

@odow
Copy link
Member Author

@odow odow commented on 7808a85 Jun 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/109241

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v11.0.2+2 -m "<description of version>" 7808a850452a400f65aabb6b6ece177a6ce01da9
git push origin v11.0.2+2

Please sign in to comment.