mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 11:15:34 +00:00
Bug 995610 - Part 0: Add release property to getBuildConfiguration(). r=evilpie
--HG-- extra : commitid : JYe2yVBDzLe extra : rebase_source : 48db4265c3ac989c654fde7443ebc5e27fb94a38
This commit is contained in:
parent
ab02b09009
commit
b2d4b9b21d
@ -104,6 +104,14 @@ GetBuildConfiguration(JSContext* cx, unsigned argc, Value* vp)
|
||||
if (!JS_SetProperty(cx, info, "debug", value))
|
||||
return false;
|
||||
|
||||
#ifdef RELEASE_BUILD
|
||||
value = BooleanValue(true);
|
||||
#else
|
||||
value = BooleanValue(false);
|
||||
#endif
|
||||
if (!JS_SetProperty(cx, info, "release", value))
|
||||
return false;
|
||||
|
||||
#ifdef JS_HAS_CTYPES
|
||||
value = BooleanValue(true);
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user