From 8bd9308dcba0a52c7311c4d29ea5a327d55d3451 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 10 Apr 2020 17:31:09 -0700 Subject: Try to fix the make build on the old macOS build bots. Bug: http://b/153310680 Test: suck it and see Change-Id: Ie75aeffa5b9fabe5bfade4192a1eaf992fcd039e --- ndk/checkbuild.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ndk/checkbuild.py') diff --git a/ndk/checkbuild.py b/ndk/checkbuild.py index a7d41aacf..891900c2c 100755 --- a/ndk/checkbuild.py +++ b/ndk/checkbuild.py @@ -693,6 +693,10 @@ class Make(ndk.builds.AutoconfModule): path = 'prebuilt/{host}' notice_group = ndk.builds.NoticeGroup.TOOLCHAIN src: Path = ndk.paths.ANDROID_DIR / 'toolchain/make' + # The macOS sed chokes on invalid UTF-8 in config.h-vms.template, at least + # for the old version on some build servers. (It works fine locally on + # 10.15.) This is stackoverflow's suggested workaround. + env = {'LC_ALL': 'C', 'LANG': 'C'} @property def notices(self) -> List[str]: -- cgit v1.2.3