Files
libtensorflow1-freebsd-port/files/patch-configure.py
Paul Armstrong 8c2b7770c2 Cleanup lint, fix prompting, fix FreeBSD 12 issues
Ran portlint, portclippy and portfmt.
Recreated patches with make makepatch
Add additional required pre-build downloads from github
Add OpenCL Sycl support
Use memory usage reducing flags for bazel. They are all to do with
reducing the time taken for incremental builds, which is not relevant
when building ports.
Add TF_NEED_MPT=0 to stop prompting
Add -march=native -Wno-sign-compare flags for CC
2022-06-08 00:57:32 +10:00

12 lines
471 B
Python

--- configure.py.orig 2021-01-04 20:18:42 UTC
+++ configure.py
@@ -475,7 +475,7 @@ def check_bazel_version(min_version, max_version):
print('Cannot find bazel. Please install bazel.')
sys.exit(0)
curr_version = run_shell(
- ['bazel', '--batch', '--bazelrc=/dev/null', 'version'])
+ ['bazel', '--batch', '--output_user_root=/tmp/.bazel', '--bazelrc=/dev/null', 'version'])
for line in curr_version.split('\n'):
if 'Build label: ' in line: