Index: tests/untrusted_minidump/nacl.scons |
diff --git a/tests/untrusted_minidump/nacl.scons b/tests/untrusted_minidump/nacl.scons |
index dba8b5a169f0a4f4499c790d43bc91de7f2869cc..712e48056fbc3acaca0b63a0e077323f17680994 100644 |
--- a/tests/untrusted_minidump/nacl.scons |
+++ b/tests/untrusted_minidump/nacl.scons |
@@ -11,6 +11,14 @@ if env.Bit('bitcode'): |
if env.Bit('skip_nonstable_bitcode'): |
Return() |
+# Add a build ID to the nexe in the cases where this works. |
+# TODO(mseaborn): Make "--build-id" work with the other toolchains. |
+# * In the x86 nacl-gcc toolchain, "--build-id" produces a nexe that |
+# sel_ldr won't load. |
+# * pnacl-ld rejects "--build-id". |
+if env.Bit('build_arm') and not env.Bit('bitcode'): |
+ env.Append(LINKFLAGS=['-Wl,--build-id']) |
+ |
nexe = env.ComponentProgram('minidump_test', 'minidump_test.c', |
EXTRA_LIBS=['minidump_generator']) |