<pre style='margin:0'>
Blair Zajac (blair) pushed a commit to branch blair-py-tensorflow1-mac-10.13-cuda-10.1
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/d9ae0ac0c985eccc09085a13342d6234436e9795">https://github.com/macports/macports-ports/commit/d9ae0ac0c985eccc09085a13342d6234436e9795</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit d9ae0ac0c985eccc09085a13342d6234436e9795
</span>Author: Blair Zajac <blair@macports.org>
AuthorDate: Thu Aug 29 07:13:02 2019 -0700

<span style='display:block; white-space:pre;color:#404040;'>    py-tensorflow: changes to build a monolithic .dylib for tfjs
</span>---
 python/py-tensorflow1/Portfile | 7 +++++++
 1 file changed, 7 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-tensorflow1/Portfile b/python/py-tensorflow1/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 0b9d925..ca7d5b8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-tensorflow1/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-tensorflow1/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -186,10 +186,17 @@ if {${name} ne ${subport}} {
</span>         foreach d {/Developer/NVIDIA/CUDA-10.1/lib /usr/local/cuda/lib /opt/intel/cudnn-10.1-osx-x64-v7.6.3.30/lib} {
             set tf_bazel_build_opts "${tf_bazel_build_opts} --linkopt -Wl,-rpath,${d}"
         }
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        # The monolothic build uses -lgomp which is provided by gcc9's
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        # /opt/local/lib/gcc9/libgomp.dylib.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        set tf_bazel_build_opts "${tf_bazel_build_opts} --config=monolithic --linkopt -L/opt/local/lib/gcc9 --linkopt -Wl,-rpath,/opt/local/lib/gcc9"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>         # To unblock the person building the package as quickly as
         # possible, build the target that gets a compile failure due
         # to an unpatched compressed_tuple.h.
         system -W ${worksrcpath} "${tf_bazel_cmd} build ${tf_bazel_build_opts} //tensorflow/core/kernels:fill_functor"
<span style='display:block; white-space:pre;background:#e0ffe0;'>+        system -W ${worksrcpath} "${tf_bazel_cmd} build ${tf_bazel_build_opts} //tensorflow/tools/lib_package:libtensorflow"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        system -W exit 1
</span>         system -W ${worksrcpath} "${tf_bazel_cmd} build ${tf_bazel_build_opts} //tensorflow/tools/pip_package:build_pip_package"
         # Build the python wheel
         system -W ${worksrcpath} "./bazel-bin/tensorflow/tools/pip_package/build_pip_package ${workpath}"
</pre><pre style='margin:0'>

</pre>