qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 3/6] gitlab-ci: Run GNU make via the $MAKE variable


From: Thomas Huth
Subject: Re: [PATCH v3 3/6] gitlab-ci: Run GNU make via the $MAKE variable
Date: Thu, 20 May 2021 09:56:26 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0

On 19/05/2021 20.45, Philippe Mathieu-Daudé wrote:
Add the $MAKE variable to call GNU make, and set it to 'gmake'
on FreeBSD to avoid:

   $ make -j"$JOBS"
   make: Unknown modifier ','
   make: "/builds/dTyar424/0/qemu/build/Makefile" line 3: Need an operator
   make: "/builds/dTyar424/0/qemu/build/Makefile" line 4: Missing dependency 
operator

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
  .gitlab-ci.d/buildtest-template.yml | 9 ++++++---
  1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.d/buildtest-template.yml 
b/.gitlab-ci.d/buildtest-template.yml
index fe4f18595ac..f284d7a0eec 100644
--- a/.gitlab-ci.d/buildtest-template.yml
+++ b/.gitlab-ci.d/buildtest-template.yml
@@ -5,9 +5,11 @@
          ;
        then
          JOBS=$(sysctl -n hw.ncpu)
+        MAKE=gmake
          ;
        else
          JOBS=$(expr $(nproc) + 1)
+        MAKE=make

Maybe we could use "gmake" on Linux, too, so we do not have to use the indirection with a variable here? Or are there Linux distros where the "gmake" link is not available?

 Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]