<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/dd425bf535f2329f606dafdf203a99c1b342339d">https://github.com/macports/macports-ports/commit/dd425bf535f2329f606dafdf203a99c1b342339d</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new dd425bf ispc-clang: Custom build of Clang/LLVM for ispc compiler build dependency ispc: Update to 1.13.0, use ispc-clang as build time Clang/LLVM dependency
</span>dd425bf is described below
<span style='display:block; white-space:pre;color:#808000;'>commit dd425bf535f2329f606dafdf203a99c1b342339d
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Wed May 20 01:47:41 2020 +0100
<span style='display:block; white-space:pre;color:#404040;'> ispc-clang: Custom build of Clang/LLVM for ispc compiler build dependency
</span><span style='display:block; white-space:pre;color:#404040;'> ispc: Update to 1.13.0, use ispc-clang as build time Clang/LLVM dependency
</span>---
lang/ispc/Portfile | 222 ++++++++++++++-------
...ompilerrtdarwinutils-find-macosxsdkversion.diff | 30 +++
lang/ispc/files/unknown-architecture-i386.patch | 36 ++--
3 files changed, 205 insertions(+), 83 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ispc/Portfile b/lang/ispc/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index db7bd96..81b1bae 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/ispc/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/ispc/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,74 +1,162 @@
</span> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
<span style='display:block; white-space:pre;background:#ffe0e0;'>-PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup cmake 1.1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup active_variants 1.1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup ispc ispc 1.12.0 v
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-categories lang parallel
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-supported_archs x86_64
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-license BSD
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers {takeshi @tenomoto} openmaintainer
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-description Intel SPMD program compiler
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-long_description \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${name} is a compiler for a variant of the C programming language, \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- with extensions for single program, multiple data programming.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-homepage http://${name}.github.com
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 9b933175ad243d8acf4511781409841531f8f8f6 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 d9633001825f82ce6fa3f525bdd948db81e56461829e828fac110b41e40225dc \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 19300769
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set llvm_version 8.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_build-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:bison \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:flex \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:python27
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# add llvm-${llvm_version} explicitly to force require_active_variants
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:llvm-${llvm_version} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:clang-${llvm_version}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-require_active_variants \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- llvm-${llvm_version} debug
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-cmake.out_of_source yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-CMakeLists.txt.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles-append unknown-architecture-i386.patch
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-patch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.major} >= 14} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|-emit-llvm|-isysroot ${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -emit-llvm|" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/cmake/GenerateBuiltins.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup compiler_blacklist_versions 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup legacysupport 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cmake 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# link legacysupport statically for compilers
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+legacysupport.use_static yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# limit legacysupport to OSX 10.9 for now
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+legacysupport.newest_darwin_requires_legacy 13
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name ispc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories lang parallel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+supported_archs x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {takeshi @tenomoto} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if { ${subport} eq ${name} } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ github.setup ispc ispc 1.13.0 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 33475aba8516f361b1016d37d32d11a78a65205f \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 aca595508b51dd1ff065c406a3fd7c93822320c510077dd4d97a2b98a23f097a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 19206050
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ license BSD
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description Intel SPMD program compiler
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description ${name} is a compiler for a variant of the C programming language, \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ with extensions for single program, multiple data programming.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set py_ver 3.8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set py_ver_nodot [string map {. {}} ${py_ver}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:bison \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:flex \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:ispc-clang \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:python${py_ver_nodot}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles patch-CMakeLists.txt.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ unknown-architecture-i386.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} >= 14} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set sdkroot ${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|-emit-llvm|-isysroot ${sdkroot} -emit-llvm|" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/cmake/GenerateBuiltins.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Fix python shebang to use explicit path to MP python 3.x
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach f [ exec find ${worksrcpath}/ -name "*.py" ] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -q "s|/usr/bin/env python3|${prefix}/bin/python${py_ver}|" ${f}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
<span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.compiler macports-clang-${llvm_version}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.cflags-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DLLVM_ENABLE_DUMP
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.cxxflags-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DLLVM_ENABLE_DUMP
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.args-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DBISON_EXECUTABLE=${prefix}/bin/bison \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DFLEX_EXECUTABLE=${prefix}/bin/flex \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DPYTHON_EXECUTABLE=${prefix}/bin/python2.7 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DLLVM_DIR=${prefix}/libexec/llvm-${llvm_version}/lib/cmake/llvm \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DISPC_INCLUDE_TESTS=OFF
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.run yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.cmd {python run_tests.py}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.target ""
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -d -m 755 ${destroot}${prefix}/share/${name}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- move ${destroot}${prefix}/examples ${destroot}${prefix}/share/${name}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Need to use a recent MacPorts build.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ compiler.cxx_standard 2014
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ compiler.blacklist *gcc* clang {macports-clang-[5-8].0} macports-clang-3.*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ use_xcode yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cmake.out_of_source yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cmake.build_type Release
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DBISON_EXECUTABLE=${prefix}/bin/bison \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DFLEX_EXECUTABLE=${prefix}/bin/flex \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DLLVM_DIR=${prefix}/libexec/ispc-clang/lib/cmake/llvm \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DISPC_INCLUDE_TESTS=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.run yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.dir ${worksrcpath}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.cmd ./run_tests.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.args --verbose --non-interactive --compiler=[file tail ${configure.cc}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.target ""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_test-append port:python${py_ver_nodot}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d -m 755 ${destroot}${prefix}/share/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${destroot}${prefix}/examples ${destroot}${prefix}/share/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # remove after 11 Aug 2020
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ variant doc description {deprecated variant} { }
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# remove after 11 Aug 2020
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-variant doc description {deprecated variant} {
</span> }
<span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.type regex
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.url ${homepage}/downloads.html
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.regex {v([0-9]+\.[0-9]+\.[0-9])}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport ispc-clang {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ github.setup llvm llvm-project 10.0.0 llvmorg-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 6733d734a728ba8d022f0cc283c6cb42a2f8ec9b \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 de4c766f5b3fffbe160af0f75e52804646beab0a4bdbf4fae916e3f055b8e463 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 120817709
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ license NCSA
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description Clang build specifically for ispc compiler.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description ${description} NOT TO BE USED IN GENERAL. This build is specifically tuned \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ to satisfy the requirements of ispc which uses it as a build dependency only. \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Has assertions and dump enabled by default, which is not the case in the \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ primary MacPorts LLVM/Clang builds.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Build configuration is largely taken from lang/llvm ports,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # then simplified and adapted for usage here
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles patch-compilerrtdarwinutils-find-macosxsdkversion.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set py_ver 2.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set py_ver_nodot [string map {. {}} ${py_ver}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:libedit \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:ncurses port:z3 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:lib/libxar.dylib:xar \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:zlib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libxml2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libomp \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bin:perl:perl5 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:ld64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:pkgconfig \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:cctools \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:python${py_ver_nodot}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ compiler.cxx_standard 2014
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ compiler.blacklist *gcc* {clang < 801} macports-clang-3.* {macports-clang-[4-8].0}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cmake.install_prefix ${prefix}/libexec/${subport}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cmake.build_type Release
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.post_args ../${worksrcdir}/llvm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default configure.dir {${workpath}/build}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default build.dir {${workpath}/build}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-delete -DCMAKE_INSTALL_NAME_DIR=${cmake.install_prefix}/lib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_INSTALL_RPATH=${cmake.install_prefix}/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace -DCMAKE_SYSTEM_PREFIX_PATH="${prefix}\;/usr" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_SYSTEM_PREFIX_PATH="${cmake.install_prefix}\;${prefix}\;/usr"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DLLVM_ENABLE_PROJECTS="clang\;libcxx\;compiler-rt" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DLLVM_LINK_LLVM_DYLIB=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DLLVM_ENABLE_ASSERTIONS=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DLLVM_ENABLE_DUMP=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DLLVM_ENABLE_RTTI=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DLLVM_INCLUDE_TESTS=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DLLVM_INCLUDE_EXAMPLES=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DLLVM_ENABLE_FFI=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DLLVM_BINDINGS_LIST=none \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_LINKER=${prefix}/bin/ld \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCLANG_INCLUDE_TESTS=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCLANG_ENABLE_STATIC_ANALYZER=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCLANG_ENABLE_ARCMT=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DDARWIN_PREFER_PUBLIC_SDK=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DLLVM_BUILD_RUNTIME=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DLIBCXX_ENABLE_SHARED=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DLIBCXX_INSTALL_LIBRARY=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCOMPILER_RT_BUILD_SANITIZERS=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPYTHON_EXECUTABLE=${prefix}/bin/python${py_ver}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.url https://github.com/llvm/llvm-project/releases
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.regex "LLVM (\\d+(?:\\.\\d+)*) Release"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ispc/files/patch-compilerrtdarwinutils-find-macosxsdkversion.diff b/lang/ispc/files/patch-compilerrtdarwinutils-find-macosxsdkversion.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..75a5c6d
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/ispc/files/patch-compilerrtdarwinutils-find-macosxsdkversion.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,30 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake.orig 2020-04-20 17:14:08.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake 2020-04-20 17:31:44.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -66,15 +66,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ERROR_FILE /dev/null
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if(NOT result_process EQUAL 0)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- message(FATAL_ERROR
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- "Failed to determine SDK version for \"${sdk_name}\" SDK")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # Check reported version looks sane.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (NOT "${var_internal}" MATCHES "^[0-9]+\\.[0-9]+(\\.[0-9]+)?$")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- message(FATAL_ERROR
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- "Reported SDK version \"${var_internal}\" does not look like a version")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(${var} ${var_internal} PARENT_SCOPE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endfunction()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -125,6 +116,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # binaries.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if ("${os}" STREQUAL "osx")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ find_darwin_sdk_version(macosx_sdk_version "macosx")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ # if there is no sdk that responds to "macosx" use the CMAKE passed in deployment target
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(NOT macosx_sdk_version)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ message(WARNING "Could not determine MacOSX SDK Version, trying CMAKE_OSX_DEPLOYMENT_TARGET")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(macosx_sdk_version CMAKE_OSX_DEPLOYMENT_TARGET)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if ("${macosx_sdk_version}" VERSION_GREATER 10.15 OR "${macosx_sdk_version}" VERSION_EQUAL 10.15)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ message(STATUS "Disabling i386 slice for ${valid_archs}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ list(REMOVE_ITEM archs "i386")
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ispc/files/unknown-architecture-i386.patch b/lang/ispc/files/unknown-architecture-i386.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index be6677f..e80cd67 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/ispc/files/unknown-architecture-i386.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/ispc/files/unknown-architecture-i386.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,22 +1,26 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- examples/cmake/AddISPCExample.cmake.orig 2019-08-16 06:18:07.000000000 +0900
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ examples/cmake/AddISPCExample.cmake 2019-10-13 12:22:13.000000000 +0900
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -44,7 +44,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/benchmarks/cmake/AddBenchmark.cmake b/benchmarks/cmake/AddBenchmark.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 6183bf44..966e8dc8 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- benchmarks/cmake/AddBenchmark.cmake.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ benchmarks/cmake/AddBenchmark.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -41,7 +41,7 @@ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Identify host arch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(UNIX)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- execute_process(COMMAND bash "-c" "uname -m | sed -e s/x86_64/x86/ -e s/i686/x86/ -e s/arm.*/arm/ -e s/sa110/arm/" OUTPUT_VARIABLE ARCH)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ execute_process(COMMAND bash "-c" "uname -m | sed -e s/x86_64/x86/ -e s/i686/x86/ -e s/i686/x86/ -e s/arm.*/arm/ -e s/sa110/arm/" OUTPUT_VARIABLE ARCH)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ string(STRIP ${ARCH} ARCH)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ execute_process(COMMAND getconf LONG_BIT OUTPUT_VARIABLE ARCH_BIT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ string(STRIP ${ARCH_BIT} ARCH_BIT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/examples/cmake/AddISPCExample.cmake b/examples/cmake/AddISPCExample.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 0887ab0f..4b1cc43f 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- examples/cmake/AddISPCExample.cmake.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ examples/cmake/AddISPCExample.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -44,7 +44,7 @@ function(add_ispc_example)
</span> set(ISPC_OBJ_NAME "${CMAKE_CURRENT_BINARY_DIR}/${ISPC_SRC_NAME}_ispc${CMAKE_CXX_OUTPUT_EXTENSION}")
set(ISPC_FLAGS ${example_ISPC_FLAGS})
if (UNIX)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-- execute_process( COMMAND bash "-c" "uname -m | sed -e s/x86_64/x86/ -e s/i686/x86/ -e s/arm.*/arm/ -e s/sa110/arm/" OUTPUT_VARIABLE ARCH)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ execute_process( COMMAND bash "-c" "uname -m | sed -e s/x86_64/x86/ -e s/i686/x86/ -e s/i386/x86/ -e s/arm.*/arm/ -e s/sa110/arm/" OUTPUT_VARIABLE ARCH)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- execute_process( COMMAND bash "-c" "uname -m | sed -e s/x86_64/x86/ -e s/amd64/x86/ -e s/i686/x86/ -e s/arm64/aarch64/ -e s/arm.*/arm/ -e s/sa110/arm/" OUTPUT_VARIABLE ARCH)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ execute_process( COMMAND bash "-c" "uname -m | sed -e s/x86_64/x86/ -e s/amd64/x86/ -e s/i686/x86/ -e s/i386/x86/ -e s/arm64/aarch64/ -e s/arm.*/arm/ -e s/sa110/arm/" OUTPUT_VARIABLE ARCH)
</span> string(STRIP ${ARCH} ARCH)
execute_process( COMMAND getconf LONG_BIT OUTPUT_VARIABLE ARCH_BIT)
string(STRIP ${ARCH_BIT} ARCH_BIT)
<span style='display:block; white-space:pre;background:#ffe0e0;'>---- examples/portable/common_cpu.mk.orig 2019-08-16 06:18:07.000000000 +0900
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ examples/portable/common_cpu.mk 2019-10-13 12:24:16.000000000 +0900
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -17,7 +17,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ISPC_FLAGS+=-O2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ISPC_HEADER=objs/$(ISPC_SRC:.ispc=_ispc.h)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--ARCH:=$(shell uname -m | sed -e s/x86_64/x86/ -e s/i686/x86/ -e s/arm.*/arm/ -e s/sa110/arm/)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ARCH:=$(shell uname -m | sed -e s/x86_64/x86/ -e s/i686/x86/ -e s/i386/x86/ -e s/arm.*/arm/ -e s/sa110/arm/)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ifeq ($(ARCH),x86)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ISPC_OBJS=$(addprefix objs/, $(ISPC_SRC:.ispc=)_ispc.o)
</span></pre><pre style='margin:0'>
</pre>