Index: gn/BUILDCONFIG.gn |
diff --git a/gn/BUILDCONFIG.gn b/gn/BUILDCONFIG.gn |
index e2719c196e184e5ce315bfaad179fb2f00168ac4..2daba294819e2329ddda91efad03e55d81b82f0c 100644 |
--- a/gn/BUILDCONFIG.gn |
+++ b/gn/BUILDCONFIG.gn |
@@ -18,6 +18,13 @@ if (current_os == "") { |
current_os = target_os |
} |
+if (target_cpu == "") { |
+ target_cpu = host_cpu |
+} |
+if (current_cpu == "") { |
+ current_cpu = target_cpu |
+} |
+ |
is_android = current_os == "android" |
is_fuchsia = current_os == "fuchsia" |
is_ios = current_os == "ios" |