From f077c1721bc739e025d11e70b4e75315cf4a397b Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Thu, 27 Jul 2023 16:15:47 -0700 Subject: [PATCH] Jenkins: Try building debug builds with optimizations 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. --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 72046f53bf..d7d043d858 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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,