Bug 973306 - Don't build JIT tests that depend on Ion with --disable-ion.
authorJan Beich <jbeich@tormail.org>
Mon, 17 Feb 2014 02:57:13 -0800
changeset 169459 0a69d9510a54b59b0b958c889669ec0a2ad37d1f
parent 169458 8112ba0e9eb62bd6e4a280828a29b07cd09d679b
child 169460 b431599b4e684185fec5b58bc5182025d63ef965
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
bugs973306
milestone30.0a1
Bug 973306 - Don't build JIT tests that depend on Ion with --disable-ion.
js/src/jsapi-tests/moz.build
--- a/js/src/jsapi-tests/moz.build
+++ b/js/src/jsapi-tests/moz.build
@@ -37,17 +37,16 @@ UNIFIED_SOURCES += [
     'testGCOutOfMemory.cpp',
     'testGCStoreBufferRemoval.cpp',
     'testHashTable.cpp',
     'testHashTableInit.cpp',
     'testIndexToString.cpp',
     'testIntern.cpp',
     'testIntString.cpp',
     'testIntTypesABI.cpp',
-    'testJitRValueAlloc.cpp',
     'testJSEvaluateScript.cpp',
     'testLookup.cpp',
     'testLooselyEqual.cpp',
     'testNewObject.cpp',
     'testNullRoot.cpp',
     'testObjectEmulatingUndefined.cpp',
     'testOOM.cpp',
     'testOps.cpp',
@@ -68,12 +67,17 @@ UNIFIED_SOURCES += [
     'testStructuredClone.cpp',
     'testToIntWidth.cpp',
     'testTrap.cpp',
     'testTypedArrays.cpp',
     'testUTF8.cpp',
     'testXDR.cpp',
 ]
 
+if CONFIG['ENABLE_ION']:
+    UNIFIED_SOURCES += [
+        'testJitRValueAlloc.cpp',
+    ]
+
 DEFINES['EXPORT_JS_API'] = True
 # Building against js_static requires that we declare mfbt sybols "exported"
 # on its behalf.
 DEFINES['IMPL_MFBT'] = True