From b832a6a72f8ab32dd29cf5fe58e465e0c7dc3b93 Mon Sep 17 00:00:00 2001 From: Ben Combee Date: Tue, 27 Oct 2009 13:48:06 -0700 Subject: [PATCH] Bug 510052 - JS fails to build in debug config in scratchbox. r=vlad --- js/src/jstracer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/src/jstracer.cpp b/js/src/jstracer.cpp index 548be2d9da8..2c154f60db6 100644 --- a/js/src/jstracer.cpp +++ b/js/src/jstracer.cpp @@ -7381,8 +7381,10 @@ arm_read_auxv() { else { // For production code, ignore invalid (or unexpected) platform strings and - // fall back to the default. For debug code, use an assertion to catch this. - JS_ASSERT(false); + // fall back to the default. For debug code, use an assertion to catch this + // when not running in scratchbox. + if (getenv("_SBOX_DIR") == NULL) + JS_ASSERT(false); } } }