Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Unified Diff: build/config/compiler/BUILD.gn

Issue 1150183009: Laying the groundwork for targeting WinRT. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Switched approach to cross-compiling for WinRT. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/config/compiler/BUILD.gn
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index 30872ae61d1bd5a592eb54e2185d586e4144a3af..3790c6a62dec8aeece58276e2d385885b87760bf 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -574,13 +574,20 @@ config("runtime_library") {
}
}
} else {
- # Static CRT.
- if (is_win) {
+ if (is_win && current_os == "win") {
brettw 2015/07/22 20:29:20 This line reads very strangely to me since they se
+ # Static CRT.
if (is_debug) {
cflags += [ "/MTd" ]
} else {
cflags += [ "/MT" ]
}
+ } else if (is_win) {
+ # Dynamic CRT on WinRT.
+ if (is_debug) {
+ cflags += [ "/MDd" ]
+ } else {
+ cflags += [ "/MD" ]
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698