| Index: build/config/compiler/BUILD.gn
|
| diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
|
| index 7b88e644e249cbf05e993578fde03745132351cb..9120e66e9d9ad6023ad37cf7670d7d95fef382b2 100644
|
| --- a/build/config/compiler/BUILD.gn
|
| +++ b/build/config/compiler/BUILD.gn
|
| @@ -622,8 +622,15 @@ config("runtime_library") {
|
| }
|
| }
|
| } else {
|
| - # Static CRT.
|
| - if (is_win) {
|
| + if (is_win && current_os != "win") {
|
| + # WindowsRT: use the dynamic CRT.
|
| + if (is_debug) {
|
| + cflags += [ "/MDd" ]
|
| + } else {
|
| + cflags += [ "/MD" ]
|
| + }
|
| + } else if (is_win) {
|
| + # Desktop Windows: static CRT.
|
| if (is_debug) {
|
| cflags += [ "/MTd" ]
|
| } else {
|
|
|