Skip to content

Commit

Permalink
msys2: fix make[3]: warning: jobserver unavailable: using -j1.
Browse files Browse the repository at this point in the history
fixed this error for msys2

====================================================================================
Configuration/Tool: nucleo-l152re/nsh,CONFIG_ARM_TOOLCHAIN_GNU_EABI
2024-11-05 06:12:26
------------------------------------------------------------------------------------
  Cleaning...
  Configuring...
make[3]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[3]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[3]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[3]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[3]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[3]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[3]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[3]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[3]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
  • Loading branch information
simbit18 authored and xiaoxiang781216 committed Nov 5, 2024
1 parent 6833b87 commit 9bdc776
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/ci/cibuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ function run_builds {
ncpus=$(grep -c ^processor /proc/cpuinfo)
fi

options+="-j ${ncpus}"
if [ "X$osname" == "Xmsys2" ]; then
export MAKEFLAGS="-j"
else
options+="-j ${ncpus}"
fi

for build in "${builds[@]}"; do
"${nuttx}"/tools/testbuild.sh ${options} -e "-Wno-cpp -Werror" "${build}"
Expand Down

0 comments on commit 9bdc776

Please sign in to comment.