From 0248ad3ad5ccd0f91febff304474bd4c42fcd247 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Wed, 24 Aug 2022 18:24:45 +0200 Subject: Externals: Fixes for supporting cross-compilation --- etc/import/include/git2/TARGETS.git2 | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'etc/import/include/git2') diff --git a/etc/import/include/git2/TARGETS.git2 b/etc/import/include/git2/TARGETS.git2 index 923bb80f..ada9989f 100644 --- a/etc/import/include/git2/TARGETS.git2 +++ b/etc/import/include/git2/TARGETS.git2 @@ -118,18 +118,17 @@ , "cond": {"type": "var", "name": "THREADSAFE"} , "then": ["#define GIT_THREADS 1"] } - , { "type": "if" - , "cond": - { "type": "==" - , "$1": - { "type": "var" - , "name": "TARGET_ARCH" - , "default": {"type": "var", "name": "ARCH"} - } - , "$2": "x86_64" + , { "type": "case" + , "expr": + { "type": "var" + , "name": "TARGET_ARCH" + , "default": {"type": "var", "name": "ARCH"} + } + , "case": + { "x86_64": ["#define GIT_ARCH_64 1"] + , "arm64": ["#define GIT_ARCH_64 1"] } - , "then": ["#define GIT_ARCH_64 1"] - , "else": ["#define GIT_ARCH_32 1"] + , "default": ["#define GIT_ARCH_32 1"] } , { "type": "if" , "cond": {"type": "var", "name": "USE_ICONV"} -- cgit v1.2.3