Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9575fac

Browse files
authored
Fix cross-compiling our freetype (#23852)
Instead of passing BUILD_GNU_TYPE as the host, it should be HOST_GNU_TYPE. This fixes cross-compilation for osx_arm64 on conda-forge.
1 parent 967c1a4 commit 9575fac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setupext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ def do_custom_build(self, env):
635635
"--with-png=no", "--with-harfbuzz=no", "--enable-static",
636636
"--disable-shared"
637637
]
638-
host = sysconfig.get_config_var('BUILD_GNU_TYPE')
638+
host = sysconfig.get_config_var('HOST_GNU_TYPE')
639639
if host is not None: # May be unset on PyPy.
640640
configure.append(f"--host={host}")
641641
subprocess.check_call(configure, env=env, cwd=src_path)

0 commit comments

Comments
 (0)