diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-08-24 18:24:45 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-09-13 10:51:13 +0200 |
commit | 0248ad3ad5ccd0f91febff304474bd4c42fcd247 (patch) | |
tree | 02c53676912ddee400f527ab741d5573b5150039 /etc/import/include/git2 | |
parent | 9119de3a643f8adf2c4a12587e32577caa762b5a (diff) | |
download | justbuild-0248ad3ad5ccd0f91febff304474bd4c42fcd247.tar.gz |
Externals: Fixes for supporting cross-compilation
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"} |