aboutsummaryrefslogtreecommitdiff
path: root/ndk/checkbuild.py
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2020-04-10 17:31:09 -0700
committerElliott Hughes <enh@google.com>2020-04-10 17:31:09 -0700
commit8bd9308dcba0a52c7311c4d29ea5a327d55d3451 (patch)
tree96bd02a9fbb2c5485f01b5b0f92766013f5e6f3b /ndk/checkbuild.py
parent58d3371a2f96a4c695f8a3f5b3cf85e33c3d63e4 (diff)
downloadndk-8bd9308dcba0a52c7311c4d29ea5a327d55d3451.tar.gz
Try to fix the make build on the old macOS build bots.
Bug: http://b/153310680 Test: suck it and see Change-Id: Ie75aeffa5b9fabe5bfade4192a1eaf992fcd039e
Diffstat (limited to 'ndk/checkbuild.py')
-rwxr-xr-xndk/checkbuild.py4
1 files changed, 4 insertions, 0 deletions
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]: