Index: build/config/nacl/BUILD.gn |
diff --git a/build/config/nacl/BUILD.gn b/build/config/nacl/BUILD.gn |
index 217494fb1ba5aeb1cbe1ddd0d16b31f56dc40dbc..d7b22ecf2cbe8cf1c99d79c0809e8529b08de3af 100644 |
--- a/build/config/nacl/BUILD.gn |
+++ b/build/config/nacl/BUILD.gn |
@@ -16,6 +16,12 @@ config("nacl_defines") { |
} else if (is_win) { |
defines = [ "__STDC_LIMIT_MACROS=1" ] |
} |
+ |
+ if (current_cpu == "pnacl" && !is_nacl_nonsfi) { |
+ # TODO: Remove the following definition once NACL_BUILD_ARCH and |
+ # NACL_BUILD_SUBARCH are defined by the PNaCl toolchain. |
+ defines += [ "NACL_BUILD_ARCH=pnacl" ] |
+ } |
} |
config("nexe_defines") { |