Skip to content

Commit

Permalink
Merge pull request #1513 from rainers/doc_mscrt
Browse files Browse the repository at this point in the history
document new command line switch -mscrt=libname
  • Loading branch information
WalterBright committed Nov 13, 2016
2 parents 6989d12 + 3143be1 commit 48e84cc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dcompiler.dd
Expand Up @@ -649,6 +649,17 @@ dmd -cov -unittest myprog.d
generate a $(TT .map) file
)

$(WINDOWS
$(SWITCH $(SWNAME -mscrt)=$(I libname),
if building MS-COFF object files with -m64 or -m32mscoff, embed a reference to
the given C runtime library $(I libname) into the object file containing `main`,
`DllMain` or `WinMain` for automatic linking. The default is $(TT libcmt)
(release version with static linkage), the other usual alternatives are
$(TT libcmtd), $(TT msvcrt) and $(TT msvcrtd).
If $(I libname) is empty, no C runtime library is automatically linked in.
)
)

$(SWITCH $(SWNAME -noboundscheck),
turns off all array bounds checking, even for safe functions. $(RED Deprecated
(use $(TT $(SWLINK -boundscheck)=off) instead).)
Expand Down

0 comments on commit 48e84cc

Please sign in to comment.