-
-
Notifications
You must be signed in to change notification settings - Fork 255
/
README.txt
29 lines (24 loc) · 1.52 KB
/
README.txt
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
This is a standalone (DMD-style) binary package for LDC, the LLVM-based D
compiler.
No installation is required, simply use the executables in the 'bin' subfolder.
The compiler configuration file is etc\ldc2.conf and can be easily customized
to your liking, e.g., adding implicit command-line options and setting up cross-
compilation.
If you have an installed Visual C++ toolchain (Visual Studio/Build Tools 2015 or
newer), LDC defaults to using linker and libraries of the latest Visual C++
installation it can find.
You can set the LDC_VSDIR environment variable to select a specific version,
e.g., 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community'.
MSVC toolchain detection and setup is skipped if LDC is run inside a
'VS Native/Cross Tools Command Prompt' (more precisely, if the VSINSTALLDIR
environment variable is set).
If you don't have a Visual C++ installation, LDC falls back to the integrated
LLD (the LLVM linker) and the bundled WinSDK & Visual C++ runtime (import)
libraries based on MinGW-w64. In that case, the generated executables depend on
an installed (redistributable) Visual C++ 2015+ runtime (vcruntime140.dll,
ucrtbase.dll etc.). Linking the Visual C++ runtime statically requires the
static libraries from a Visual C++ toolchain, which cannot be bundled with
3rd-party compilers such as LDC due to their restrictive license; see
https://github.com/ldc-developers/mingw-w64-libs for details.
For further information, including on how to report bugs, please refer to the
LDC wiki: http://wiki.dlang.org/LDC.