aboutsummaryrefslogtreecommitdiff
path: root/ndk/checkbuild.py
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2020-04-13 16:19:07 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2020-04-13 16:19:07 +0000
commit28df01568e9323aa7b33986b0e5647dc5ab8b908 (patch)
tree25f4849bc8a77daa5d7c140e117ee8b5fe3c56d3 /ndk/checkbuild.py
parent286d215d8c29a33f824c99d3d9460273e7696a9e (diff)
parent8bd9308dcba0a52c7311c4d29ea5a327d55d3451 (diff)
downloadndk-28df01568e9323aa7b33986b0e5647dc5ab8b908.tar.gz
Merge "Try to fix the make build on the old macOS build bots."
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]: