]> git.lizzy.rs Git - rust.git/commit
mk: Compile C code on MSVC with /MD
authorAlex Crichton <alex@alexcrichton.com>
Wed, 3 Jun 2015 22:24:35 +0000 (15:24 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 3 Jun 2015 22:24:35 +0000 (15:24 -0700)
commitcb7d91488043df645b23a9ffd25997386d00e425
treeafa7ba474d0a4abbe94d4d298e8b0d51f2dcd7c9
parentc800b22e95f93ac55cc001b87bfa34852995c3c9
mk: Compile C code on MSVC with /MD

On MSVC there are two ways that the CRT can be linked, either statically or
dynamically. Each object file produced by the compiler is compiled against
msvcrt (a dll) or libcmt (a static library). When the linker is dealing with
more than one object file, it requires that all object files link to the same
CRT, or else the linker will spit out some errors.

For now, compile code with `-MD` as it seems to appear more often in C libraries
so we'll stick with the same trend.
mk/cfg/x86_64-pc-windows-msvc.mk