Skip to content

Commit 2986b55

Browse files
committed
【更新】scons 多核编译参数
1 parent fed1634 commit 2986b55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Jenkinsfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ pipeline {
127127
128128
echo \$RTT_EXEC_PATH
129129
130-
scons -C bsp/\$RTT_BSP
130+
export CPUS=$(cat /proc/cpuinfo | grep "processor" | sort | uniq | wc -l)
131+
scons -j${env.CPUS} -C bsp/\$RTT_BSP
131132
"""
132133
}
133134
}

0 commit comments

Comments
 (0)