-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconf-msvc32.opam
43 lines (40 loc) · 1.84 KB
/
conf-msvc32.opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
opam-version: "2.0"
version: "dev"
synopsis: "Microsoft C Compiler Environment Settings (32-bit x86)"
description: """
This package uses msvs-tools to find additional values required for the
environment in order to use the x86 (32-bit) Microsoft C compiler (cl).
After installation, the package's variables indicate the required values:
- conf-msvc32:msvs-bin, conf-msvc32:msvs-inc and conf-msvc32:msvc-lib are values
to be added to PATH, INCLUDE and LIB respectively. In opam 2.2, they should be
added using x-env-path-rewrite set to false, as they contain multiple
directories.
- conf-msvc32:package is the name of the Visual Studio package providing the
compiler (e.g. Visual Studio Community 2022)
- conf-msvc32:ml is the name of the assembler (usually "ml")
- conf-msvc32:script is the vcvarsall or setenv script which was queried by
msvs-detect to provide this information
"""
maintainer: "David Allsopp <david.allsopp@metastack.com>"
authors: "David Allsopp"
license: "BSD-3-clause"
homepage: "https://github.com/metastack/msvs-tools#readme"
bug-reports: "https://github.com/metastack/msvs-tools/issues"
depends: ["msvs-detect"]
available: os = "win32"
flags: conf
build: ["bash" "%{msvs-detect:share}%\\msvs-opam" "x86_32" name "%{msvs-detect:share}%\\msvs-detect"]
post-messages: [
"""
A suitable Visual Studio installation could not be found for x86.
Visual Studio can be obtained from https://visualstudio.microsoft.com"""
{failure}
"""
The Microsoft C compiler has been located in the environment which suggests opam
is running either from a Tools Command Prompt or from another wrapper which is
updating the environment variables.
opam has not altered these environment settings, but you will need to ensure
that future invocations of opam are done from the same environment, or the
compiler will be unavailable."""
{success & _:msvs-bin = ""}
]