diff options
Diffstat (limited to 'etc/import/include/git2')
-rw-r--r-- | etc/import/include/git2/TARGETS.git2 | 21 |
1 files changed, 10 insertions, 11 deletions
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"} |