Skip to content

opam packaging for msvs-detect#18

Merged
dra27 merged 2 commits intometastack:masterfrom
dra27:opam
Mar 8, 2024
Merged

opam packaging for msvs-detect#18
dra27 merged 2 commits intometastack:masterfrom
dra27:opam

Conversation

@dra27
Copy link
Copy Markdown
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

dra27 added 2 commits March 8, 2024 10:29
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
@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