Add missing headers for srand() to jerry-minimal and riot-stm32f4
A buildoption test is also added to test jerry-cmdline-minimal. JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "jerryscript.h"
|
#include "jerryscript.h"
|
||||||
|
|||||||
@@ -14,10 +14,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "shell.h"
|
#include "shell.h"
|
||||||
#include "jerryscript.h"
|
#include "jerryscript.h"
|
||||||
#include "jerryscript-ext/handler.h"
|
#include "jerryscript-ext/handler.h"
|
||||||
|
#include "jerryscript-port.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Standalone Jerry exit codes
|
* Standalone Jerry exit codes
|
||||||
|
|||||||
@@ -128,6 +128,8 @@ JERRY_BUILDOPTIONS = [
|
|||||||
['--jerry-libc=off', '--compile-flag=-m32', '--cpointer-32bit=on', '--system-allocator=on']),
|
['--jerry-libc=off', '--compile-flag=-m32', '--cpointer-32bit=on', '--system-allocator=on']),
|
||||||
Options('buildoption_test-external_context',
|
Options('buildoption_test-external_context',
|
||||||
['--jerry-libc=off', '--external-context=on']),
|
['--jerry-libc=off', '--external-context=on']),
|
||||||
|
Options('buildoption_test-cmdline_minimal',
|
||||||
|
['--jerry-cmdline-minimal=on']),
|
||||||
Options('buildoption_test-snapshot_tool',
|
Options('buildoption_test-snapshot_tool',
|
||||||
['--jerry-cmdline-snapshot=on']),
|
['--jerry-cmdline-snapshot=on']),
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user