From c1767ae75e098ae224337cc2b8bd886be54c2e86 Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Tue, 22 Jul 2014 09:08:36 -0400 Subject: Allow qbs.endianness to be undefined. If the property IS defined, it still must be in [big, little, mixed]. Change-Id: I77d64580d1dcce8ad027500ee8e394bf05d3d961 Reviewed-by: Christian Kandeler --- share/qbs/modules/qbs/common.qbs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'share') diff --git a/share/qbs/modules/qbs/common.qbs b/share/qbs/modules/qbs/common.qbs index 0425d70d5..ca1168409 100644 --- a/share/qbs/modules/qbs/common.qbs +++ b/share/qbs/modules/qbs/common.qbs @@ -93,6 +93,8 @@ Module { canonicalArchitecture(architecture) + "'"); validator.addCustomValidator("endianness", endianness, function (value) { + if (value === undefined) + return true; return ["big", "little", "mixed"].indexOf(value) !== -1; }, "must be in [big, little, mixed]"); -- cgit v1.2.3