On Tue, Apr 11, 2023 at 10:53:23AM +0000, Klemens Nanni wrote:
> Official build tags mention passing -jN to the update-workspaces.sh script,
> which does make it use more jobs on my box, so do that.
> 
> Their build system is a very weird mix and I still see -j2 in the process list
> with and without this diff, so something else is at work, but this diff does
> not make that worse.

The build system is really pretty obtuse. Adding -j2 seems to address
the part in update-workspaces.sh. Not sure if this propagates to
places like libraries/source/fcollada/build.sh and
libraries/source/nvtt/build.sh.

I'm okay with adding -j${MAKE_JOBS} for now and taking it from there.

> Compiling .cpp tests takes noticable time and are logged, but we never run
> them, so disable for now.

ok to disable the tests while NO_TEST=Yes is in place. 

> Document -std=gnu++17 as seen in compile logs on amd64.

Definitely the right thing to note this here.

> Feedback? Objection? OK?

in sum that's an overall ok thfr@

> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/games/0ad/base/Makefile,v
> retrieving revision 1.40
> diff -u -p -r1.40 Makefile
> --- Makefile  6 Mar 2023 13:37:15 -0000       1.40
> +++ Makefile  11 Apr 2023 10:48:44 -0000
> @@ -35,6 +35,7 @@ RUN_DEPENDS =               devel/desktop-file-utils 
>                       games/0ad/data=${V}
>  MODULES =            lang/python
>  
> +# gnu++17
>  COMPILER =           base-clang ports-gcc
>  
>  MODPY_RUNDEP =               No
> @@ -58,7 +59,8 @@ CONFIGURE_ENV +=    SHELL=sh
>  
>  # XXX don't use --with-native-mozjs because 0ad needs to stay in sync
>  # with it: updates to mozjs could break the multiplayer.
> -CONFIGURE_ARGS +=    --without-nvtt \
> +CONFIGURE_ARGS +=    -j${MAKE_JOBS} \
> +                     --without-nvtt \
>                       --datadir=${PREFIX}/share/0ad \
>                       --libdir=${PREFIX}/lib \
>                       --minimal-flags
> @@ -97,6 +99,11 @@ do-install:
>  
>  # most tests fail without nvtt
>  NO_TEST =            Yes
> +# avoid building unused tests in ${WRKSRC}/Makefile
> +MAKE_FLAGS +=                cxxtestroot_config='' \
> +                     mocks_test_config='' \
> +                     test_config=''
> +
>  #do-test:
>  #    cd ${WRKDIST}/binaries/system && ./test
>  
> 

Reply via email to