]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
Parallel build fixes and minor cleanups
authorbones_was_here <bones_was_here@xonotic.au>
Mon, 25 Dec 2023 18:56:51 +0000 (04:56 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Tue, 26 Dec 2023 11:58:26 +0000 (21:58 +1000)
Fixes parallel builds which were broken in
584edbe3c5a1f0ab189d84d4d7b4a921f8064160 by insufficient RTFM.

Enables parallel schroot builds.

Makefile
misc/tools/all/release.subr

index 4a2c90e76acd4f80823122840bd931a5e0e1c5c1..d7d329d2f47fda02d153f7de68933b9448024e84 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -55,8 +55,6 @@ endif
 
 # If requested, these targets must always run first:
 .EXTRA_PREREQS := $(filter clean update-stable update-beta, $(MAKECMDGOALS))
-# It makes sense to `clean-sources` after building if requested.
-.NOTPARALLEL: $(.EXTRA_PREREQS) clean-sources
 
 .PHONY: clean-sources
 clean-sources:
@@ -82,12 +80,12 @@ $(D0SRC)/.libs/libd0_blind_id.a $(D0SRC)/.libs/libd0_rijndael.a:
        $(MAKE) -C $(D0SRC) clean  # ensures missing .a files are created FIXME WORKAROUND
        $(MAKE) -C $(D0SRC)
 
-$(DPSRC)/darkplaces-dedicated: $(D0SRC)/.libs/libd0_blind_id.a $(D0SRC)/.libs/libd0_rijndael.a
+$(DPSRC)/darkplaces-dedicated: $(D0SRC)/.libs/libd0_blind_id.a
        $(MAKE) -C $(DPSRC) sv-release
 $(SERVER): $(DPSRC)/darkplaces-dedicated
        cp $(DPSRC)/darkplaces-dedicated $(SERVER)
 
-$(DPSRC)/darkplaces-sdl: $(D0SRC)/.libs/libd0_blind_id.a $(D0SRC)/.libs/libd0_rijndael.a
+$(DPSRC)/darkplaces-sdl: $(D0SRC)/.libs/libd0_blind_id.a
        $(MAKE) -C $(DPSRC) sdl-release
 $(CLIENT): $(DPSRC)/darkplaces-sdl
        cp $(DPSRC)/darkplaces-sdl $(CLIENT)
index cba2bd22f593db1257cd7d35c1ec98b6c5ebdbdc..68172675c4d7e67f3b290395f393c5e5d5403727 100644 (file)
@@ -228,7 +228,7 @@ case "$cmd" in
                esac
                case " $HOSTS_THAT_ARE_SCHROOT " in
                        *\ $host\ *)
-                               schroot="schroot -c $host --"
+                               schroot="schroot -c $host --preserve-environment --"
                                ;;
                esac
                case " $HOSTS_THAT_ARE_MYSELF $HOSTS_THAT_ARE_SCHROOT " in
@@ -307,11 +307,13 @@ case "$cmd" in
                targetdir=$3
                verbose mkdir -p "$targetdir"
                (
-                       cd "misc/buildsrc"
+                       cd "$d0/misc/buildsrc"
                        verbose ./dlls.sh clean "$buildpath"
                        verbose ./dlls.sh all "$buildpath" "$arch"
                )
                verbose cp -v $buildpath/out/$arch/* "$targetdir"
+
+               # SDL2
                verbose mkdir -p "$d0/misc/builddeps/$arch/"
                verbose rsync --delete -avP "$buildpath/pkg/$arch/sdl" "$d0/misc/builddeps/$arch/"
                # PKG_CONFIG HACK: avoids needing to modify sdl2-config