Skip to content

Commit c2147f3

Browse files
authored
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
1 parent 7d5e3f3 commit c2147f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

emsdk.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,10 @@ def cmake_configure(generator, build_root, src_root, build_type, extra_cmake_arg
10441044
# Target macOS 10.14 at minimum, to support widest range of Mac devices from "Early 2008" and newer:
10451045
# https://en.wikipedia.org/wiki/MacBook_(2006-2012)#Supported_operating_systems
10461046
cmdline += ['-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14']
1047+
# To enable widest possible chance of success for building, let the code
1048+
# compile through with older toolchains that are about to be deprecated by
1049+
# upstream LLVM.
1050+
cmdline += ['-DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON']
10471051
cmdline += extra_cmake_args + [src_root]
10481052

10491053
print('Running CMake: ' + str(cmdline))

0 commit comments

Comments
 (0)