Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opam packaging for msvs-detect #18

Merged
merged 2 commits into from
Mar 8, 2024
Merged

opam packaging for msvs-detect #18

merged 2 commits into from
Mar 8, 2024

Conversation

dra27
Copy link
Contributor

@dra27 dra27 commented Mar 8, 2024

Requires features from #17. Three packages added: msvs-detect installs both the msvs-detect and msvs-opam scripts to the switch's share directory. conf-msvc32 and conf-msvc64 then use those scripts to probe for x86 and x64 compilers, storing the results in opam package variables.

msvs-opam:

  • Sets up package variables:
    • msvs-bin, msvs-inc and msvs-lib for the environment settings
    • package contains MSVS_NAME
    • script contains the path to the batch file which was analysed
    • ml contains the name of the assembler (ml or ml64)
  • Binds to specific files in the installation so that the package should be invalidated when the Visual Studio installation is upgraded
  • Caches the results of msvs-detect and searches switches for a cached result

Use dev version numbers, to reflect the fact that the package may now be
pinned.
@dra27 dra27 linked an issue Mar 8, 2024 that may be closed by this pull request
@dra27 dra27 merged commit 32a634a into metastack:master Mar 8, 2024
1 check passed
@dra27 dra27 deleted the opam branch March 8, 2024 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

msvc-tools and OCaml/OPAM
1 participant