tldr/pages/common/ldc.md

25 lines
479 B
Markdown
Raw Normal View History

dmd, ldc, gdc, dub: add page (#11321) * dmd: Add page * dmd: Update page * ldc: Add page * gdc: Add page * dub: Add page * ldc: Update page * Update dmd.md fix lint error * Update dub.md fix linter error * Update gdc.md fix linter error * Update ldc.md fix linter error * Update pages/linux/dub.md Co-authored-by: pixel <pixel+github@chrissx.de> * Update pages/linux/gdc.md Co-authored-by: pixel <pixel+github@chrissx.de> * Update dmd.md * dmd, dub, gdc, ldc: move to common Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * Update pages/common/dmd.md Co-authored-by: Juri Dispan <juri.dispan@posteo.net> * Update pages/common/dmd.md Co-authored-by: Juri Dispan <juri.dispan@posteo.net> * Update pages/common/dub.md Co-authored-by: Juri Dispan <juri.dispan@posteo.net> * Update pages/common/dub.md Co-authored-by: Juri Dispan <juri.dispan@posteo.net> * Update pages/common/dub.md Co-authored-by: Juri Dispan <juri.dispan@posteo.net> * Update pages/common/ldc.md Co-authored-by: Juri Dispan <juri.dispan@posteo.net> * Update pages/common/ldc.md Co-authored-by: Juri Dispan <juri.dispan@posteo.net> * Update pages/common/ldc.md Co-authored-by: Juri Dispan <juri.dispan@posteo.net> * Update pages/common/ldc.md Co-authored-by: Juri Dispan <juri.dispan@posteo.net> * Update pages/common/ldc.md Co-authored-by: Juri Dispan <juri.dispan@posteo.net> * Apply suggestions from code review Co-authored-by: Juri Dispan <juri.dispan@posteo.net> * dmd, dub, gdc, ldc: update pages Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * dub: fix typo Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> --------- Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: pixel <pixel+github@chrissx.de> Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
2023-10-29 19:19:57 +00:00
# ldc
> D compiler using LLVM as a backend.
> More information: <https://wiki.dlang.org/Using_LDC>.
- Compile a source code file into an executable binary:
`ldc2 {{path/to/source.d}} -of={{path/to/output_executable}}`
- Compile the source code file without linking:
`ldc2 -c {{path/to/source.d}}`
- Select the target architecture and OS:
`ldc -mtriple={{architecture_OS}} -c {{path/to/source.d}}`
- Display help:
`ldc2 -h`
- Display complete help:
`ldc2 -help-hidden`