From 05bf74aed3b8338ab967e262f095619683540518 Mon Sep 17 00:00:00 2001 From: laggykiller <61652821+laggykiller@users.noreply.github.com> Date: Wed, 7 Feb 2024 10:05:27 +0800 Subject: [PATCH] Fix build --- scripts/get_arch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/get_arch.py b/scripts/get_arch.py index 5b3abad..0121c7c 100755 --- a/scripts/get_arch.py +++ b/scripts/get_arch.py @@ -30,7 +30,8 @@ def get_arch(): def main(): arch = get_arch() - if compile_target := os.getenv("APNGASM_COMPILE_TARGET"): + compile_target = os.getenv("APNGASM_COMPILE_TARGET") + if compile_target: sys.stdout.write(compile_target) else: sys.stdout.write(arch)