Always use clang with lld when compiling for the host platform in the Jenkins pipeline
This commit is contained in:
parent
4f0fa09cd9
commit
58e54f1b94
|
@ -22,7 +22,8 @@ pipeline { // Multi-branch pipeline script for Yerbacon.
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
echo "Building the ${env.BRANCH_NAME} branch.."
|
echo "Building the ${env.BRANCH_NAME} branch.."
|
||||||
cmakeBuild buildDir: 'cmake-build-release', buildType: 'release', cleanBuild: true, installation: 'Main'
|
cmakeBuild buildDir: 'cmake-build-release', buildType: 'release', cleanBuild: true, installation: 'Main',
|
||||||
|
cmakeArgs: "-DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_LINKER=/usr/bin/lld"
|
||||||
cmake arguments: '--build ./cmake-build-release --target ybcon', installation: 'Main'
|
cmake arguments: '--build ./cmake-build-release --target ybcon', installation: 'Main'
|
||||||
sh 'strip ./cmake-build-release/ybcon'
|
sh 'strip ./cmake-build-release/ybcon'
|
||||||
cpack installation: 'Main', workingDir: 'cmake-build-release'
|
cpack installation: 'Main', workingDir: 'cmake-build-release'
|
||||||
|
|
Loading…
Reference in New Issue