Always use clang with lld when compiling for the host platform in the Jenkins pipeline

This commit is contained in:
Username404 2021-08-15 17:57:55 +02:00
parent 4f0fa09cd9
commit 58e54f1b94
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 2 additions and 1 deletions

3
Jenkinsfile vendored
View File

@ -22,7 +22,8 @@ pipeline { // Multi-branch pipeline script for Yerbacon.
stage('Build') {
steps {
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'
sh 'strip ./cmake-build-release/ybcon'
cpack installation: 'Main', workingDir: 'cmake-build-release'