aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gn/BUILD.gn6
-rw-r--r--gn/BUILDCONFIG.gn4
2 files changed, 9 insertions, 1 deletions
diff --git a/gn/BUILD.gn b/gn/BUILD.gn
index 97e5368fdb..c6d0658975 100644
--- a/gn/BUILD.gn
+++ b/gn/BUILD.gn
@@ -386,6 +386,12 @@ config("no_rtti") {
}
}
+config("debug") {
+ if (is_win) {
+ cflags = [ "/MTd" ]
+ }
+}
+
config("release") {
if (is_win) {
cflags = [
diff --git a/gn/BUILDCONFIG.gn b/gn/BUILDCONFIG.gn
index 23e5288f1a..58cfb2365a 100644
--- a/gn/BUILDCONFIG.gn
+++ b/gn/BUILDCONFIG.gn
@@ -132,7 +132,9 @@ default_configs = [
"//gn:warnings",
"//gn:warnings_except_public_headers",
]
-if (!is_debug) {
+if (is_debug) {
+ default_configs += [ "//gn:debug" ]
+} else {
default_configs += [ "//gn:release" ]
}
if (!is_official_build) {