|
Lines 61-72
Link Here
|
| 61 |
|
61 |
|
| 62 |
PLIST_SUB= TF_PORT_VERSION=${PORTVERSION} |
62 |
PLIST_SUB= TF_PORT_VERSION=${PORTVERSION} |
| 63 |
|
63 |
|
| 64 |
OPTIONS_DEFINE= CPU_OPTS |
64 |
OPTIONS_DEFINE= CPU_OPTS PARALLEL_JOBS |
| 65 |
|
65 |
|
| 66 |
CPU_OPTS_DESC= Enable optimisations using features available on your CPU |
66 |
CPU_OPTS_DESC= Enable optimisations using features available on your CPU |
| 67 |
CPU_OPTS_VARS= CPU_TARGET=native BAZEL_COPT="-c opt --copt=-march=native --copt=-mfpmath=sse" |
67 |
CPU_OPTS_VARS= CPU_TARGET=native BAZEL_COPT="-c opt --copt=-march=native --copt=-mfpmath=sse" |
| 68 |
CPU_OPTS_VARS_OFF= CPU_TARGET=x86-64 |
68 |
CPU_OPTS_VARS_OFF= CPU_TARGET=x86-64 |
| 69 |
|
69 |
|
|
|
70 |
PARALLEL_JOBS_DESC= Enable parallel building |
| 71 |
PARALLEL_JOBS_VARS= BAZEL_JOBS="--jobs $$(sysctl -n hw.ncpu)" |
| 72 |
PARALLEL_JOBS_VARS_OFF= BAZEL_JOBS="--jobs 1" |
| 73 |
|
| 70 |
.include "Makefile.MASTER_SITES" |
74 |
.include "Makefile.MASTER_SITES" |
| 71 |
|
75 |
|
| 72 |
post-patch: |
76 |
post-patch: |
|
Lines 134-140
Link Here
|
| 134 |
|
138 |
|
| 135 |
do-build: |
139 |
do-build: |
| 136 |
@cd ${WRKSRC} && \ |
140 |
@cd ${WRKSRC} && \ |
| 137 |
bazel --bazelrc="${WRKDIR}/bazelrc" ${BAZEL_BOOT} build --jobs 16 ${BAZEL_COPT} --host_copt="-I${LOCALBASE}/include" \ |
141 |
bazel --bazelrc="${WRKDIR}/bazelrc" ${BAZEL_BOOT} build ${BAZEL_JOBS} ${BAZEL_COPT} --host_copt="-I${LOCALBASE}/include" \ |
| 138 |
--host_linkopt="-L${LOCALBASE}/lib" --linkopt="-L${LOCALBASE}/lib" --config=c++17 --copt="-I${LOCALBASE}/include" \ |
142 |
--host_linkopt="-L${LOCALBASE}/lib" --linkopt="-L${LOCALBASE}/lib" --config=c++17 --copt="-I${LOCALBASE}/include" \ |
| 139 |
--cxxopt="--std=c++1z" --verbose_failures -s \ |
143 |
--cxxopt="--std=c++1z" --verbose_failures -s \ |
| 140 |
--distdir=${WORKDIR}/bazel-dist \ |
144 |
--distdir=${WORKDIR}/bazel-dist \ |