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

Unified Diff: BUILD.gn

Issue 2260573003: Fix build rules for gRPC proto generator plugin to work when crosscompiling (Closed) Base URL: https://chromium.googlesource.com/external/github.com/grpc/grpc@2016-08-17
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | templates/BUILD.gn.template » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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" ]
}
+}
« no previous file with comments | « no previous file | templates/BUILD.gn.template » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698