From c2147f3b87ab317fba634e21b2aef7d69bfac600 Mon Sep 17 00:00:00 2001 From: juj Date: Wed, 13 Apr 2022 19:44:14 +0300 Subject: [PATCH] Enable building LLVM with about-to-be deprecated toolchains (#1029) * Enable building LLVM with about-to-be deprecated toolchains for best chance of succeeding with the build. * Shorten line length * Adjust to 80 columns --- emsdk.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/emsdk.py b/emsdk.py index 28a06de..28040f8 100644 --- a/emsdk.py +++ b/emsdk.py @@ -1044,6 +1044,10 @@ def cmake_configure(generator, build_root, src_root, build_type, extra_cmake_arg # Target macOS 10.14 at minimum, to support widest range of Mac devices from "Early 2008" and newer: # https://en.wikipedia.org/wiki/MacBook_(2006-2012)#Supported_operating_systems cmdline += ['-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14'] + # To enable widest possible chance of success for building, let the code + # compile through with older toolchains that are about to be deprecated by + # upstream LLVM. + cmdline += ['-DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON'] cmdline += extra_cmake_args + [src_root] print('Running CMake: ' + str(cmdline))