Index: examples/BUILD.gn |
diff --git a/examples/BUILD.gn b/examples/BUILD.gn |
index 89e9cfcc22fa74f0bb7dc5ac3061cd888b520cae..1c4a13a8c9ec06f1440cb1722e674cd68beb10a5 100644 |
--- a/examples/BUILD.gn |
+++ b/examples/BUILD.gn |
@@ -2,6 +2,7 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+import("//build/config/nacl/config.gni") |
import("//build/config/ui.gni") |
# Collection of examples which are currently capable of being built as pexes. |
@@ -77,7 +78,7 @@ group("examples") { |
deps += [ "//examples/python" ] |
} |
- if ((is_linux || is_android) && !is_asan) { |
+ if (mojo_use_nacl && (is_linux || is_android) && !is_asan) { |
deps += [ ":portable_examples(//build/toolchain/nacl:newlib_pnacl)" ] |
} |
} |