Index: BUILD.gn |
diff --git a/BUILD.gn b/BUILD.gn |
index d8d6dfe83d9ae9831ecb69738dcbad655b39c9a6..02a8d854895dd9f67d1e523992c8f12fd709da25 100644 |
--- a/BUILD.gn |
+++ b/BUILD.gn |
@@ -1497,6 +1497,8 @@ source_set("grpc++_unsecure") { |
] |
} |
+# Only compile the plugin for the host architecture. |
+if (current_toolchain == host_toolchain) { |
source_set("grpc_plugin_support") { |
@@ -1536,8 +1538,11 @@ source_set("grpc_plugin_support") { |
] |
} |
+} |
+# Only compile the plugin for the host architecture. |
+if (current_toolchain == host_toolchain) { |
executable("grpc_cpp_plugin") { |
sources = [ |
@@ -1555,6 +1560,7 @@ executable("grpc_cpp_plugin") { |
public_configs = [ ":grpc_config" ] |
} |
+} |