Skip to content

Commit

Permalink
Jenkins: Try building debug builds with optimizations
Browse files Browse the repository at this point in the history
This should reduce the number of timeouts we see in CI while
still retaining all the useful TCG debug assertions.
Ideally we would use -Og, but that does not work with the
Clang 10 compiler installed on the CI nodes as it is too old.
Using -O1 (which is equivalent to -Og) results in a false-positive
qemu_build_not_reached() with clang10 so we use -O2 for now.
  • Loading branch information
arichardson committed Jul 28, 2023
1 parent 33d6285 commit e531a0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ selectedConfigs.each { config ->
def extraQemuArgs = ''
boolean isDebug = config.endsWith('-debug')
if (isDebug) {
extraQemuArgs = '--qemu/configure-options=--enable-rvfi-dii --qemu/build-type=Debug'
extraQemuArgs = '"--qemu/configure-options=--enable-rvfi-dii --extra-cflags=-O2 --extra-cxxflags=-O2" --qemu/build-type=Debug'
}
def qemuResult = cheribuildProject(target: 'qemu', cpu: 'native', skipArtifacts: true,
nodeLabel: null,
Expand Down

0 comments on commit e531a0a

Please sign in to comment.