From 8d9da54dd58da7a909bb5981db27bb4e8e57d21c Mon Sep 17 00:00:00 2001 From: Kimmo Ollila Date: Thu, 19 Jan 2017 11:51:50 +0200 Subject: Add a configure check for alloca() Alloca() is not supported on all platforms, like INTEGRITY on ARM, so adding a configure check for it. This can be used when building QtQml and 3rd party code, in particular PCRE2 and SQLite. Change-Id: I9785e16c21f67d1a68fef567e18c3356170f027e Reviewed-by: Lars Knoll --- configure.json | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure.json') diff --git a/configure.json b/configure.json index 21ec84818d..cb64e6313a 100644 --- a/configure.json +++ b/configure.json @@ -409,6 +409,11 @@ "type": "compile", "test": "unix/posix_fallocate" }, + "alloca": { + "label": "alloca()", + "type": "compile", + "test": "common/alloca" + }, "stack_protector": { "label": "stack protection", "type": "compilerSupportsFlag", @@ -889,6 +894,11 @@ "condition": "tests.posix_fallocate", "output": [ "privateFeature" ] }, + "alloca": { + "label": "alloca()", + "condition": "tests.alloca", + "output": [ "privateFeature" ] + }, "stack-protector-strong": { "label": "stack protection", "condition": "config.qnx && tests.stack_protector", -- cgit v1.2.3