.travis.yml: Build acceptance tests with -O2 compiler optimization
PATCH 1/1 .travis.yml: Build acceptance tests with -O2 compiler optimization
As we just want the tests to succeed, build them with compiler optimizations enabled to run the tests faster.
--- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
.travis.yml +1 -1
@@ -293,7 +293,7 @@ jobs: - name: "GCC check-acceptance" dist: bionic env: - - CONFIG="--enable-tools --target-list=aarch64-softmmu,alpha-softmmu,arm-softmmu,m68k-softmmu,microblaze-softmmu,mips-softmmu,mips64el-softmmu,nios2-softmmu,or1k-softmmu,ppc-softmmu,ppc64-softmmu,s390x-softmmu,sh4-softmmu,sparc-softmmu,x86_64-softmmu,xtensa-softmmu" + - CONFIG="--extra-cflags=-O2 --enable-tools --target-list=aarch64-softmmu,alpha-softmmu,arm-softmmu,m68k-softmmu,microblaze-softmmu,mips-softmmu,mips64el-softmmu,nios2-softmmu,or1k-softmmu,ppc-softmmu,ppc64-softmmu,s390x-softmmu,sh4-softmmu,sparc-softmmu,x86_64-softmmu,xtensa-softmmu" - TEST_CMD="make check-acceptance" - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-acceptance" after_script:
Signature · 1 line
2.21.3
Quoted 2 lines · Philippe Mathieu-Daudé
As we just want the tests to succeed, build them with compiler optimizations enabled to run the tests faster.
Maybe it is a good opportunity to test -O3 instead... Since this configuration is not covered.
Quoted 20 lines
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-).travis.yml +1
-1@@ -293,7 +293,7 @@ jobs: - name: "GCC check-acceptance" dist: bionic env: - - CONFIG="--enable-tools --target-list=aarch64-softmmu,alpha-softmmu,arm-softmmu,m68k-softmmu,microblaze-softmmu,mips-softmmu,mips64el-softmmu,nios2-softmmu,or1k-softmmu,ppc-softmmu,ppc64-softmmu,s390x-softmmu,sh4-softmmu,sparc-softmmu,x86_64-softmmu,xtensa-softmmu" + - CONFIG="--extra-cflags=-O2 --enable-tools --target-list=aarch64-softmmu,alpha-softmmu,arm-softmmu,m68k-softmmu,microblaze-softmmu,mips-softmmu,mips64el-softmmu,nios2-softmmu,or1k-softmmu,ppc-softmmu,ppc64-softmmu,s390x-softmmu,sh4-softmmu,sparc-softmmu,x86_64-softmmu,xtensa-softmmu" - TEST_CMD="make check-acceptance" - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-acceptance" after_script:
Quoted 6 lines · Philippe Mathieu-Daudé
Quoted 2 lines · Philippe Mathieu-Daudé
As we just want the tests to succeed, build them with compiler optimizations enabled to run the tests faster.
Maybe it is a good opportunity to test -O3 instead... Since this configuration is not covered.
Don't know if -O3 is worth it - even Gentoo developers warn against cranking it up too much.
In fact I'm surprised we don't build -O2 by default.
Quoted 21 lines
Quoted 21 lines
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-).travis.yml +1
-1@@ -293,7 +293,7 @@ jobs: - name: "GCC check-acceptance" dist: bionic env: - - CONFIG="--enable-tools --target-list=aarch64-softmmu,alpha-softmmu,arm-softmmu,m68k-softmmu,microblaze-softmmu,mips-softmmu,mips64el-softmmu,nios2-softmmu,or1k-softmmu,ppc-softmmu,ppc64-softmmu,s390x-softmmu,sh4-softmmu,sparc-softmmu,x86_64-softmmu,xtensa-softmmu" + - CONFIG="--extra-cflags=-O2 --enable-tools --target-list=aarch64-softmmu,alpha-softmmu,arm-softmmu,m68k-softmmu,microblaze-softmmu,mips-softmmu,mips64el-softmmu,nios2-softmmu,or1k-softmmu,ppc-softmmu,ppc64-softmmu,s390x-softmmu,sh4-softmmu,sparc-softmmu,x86_64-softmmu,xtensa-softmmu" - TEST_CMD="make check-acceptance" - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-acceptance" after_script:
Signature · 1 line
Alex Bennée
Quoted 7 lines · Alex Bennée
Quoted 4 lines · Philippe Mathieu-Daudé
Quoted 2 lines · Philippe Mathieu-Daudé
As we just want the tests to succeed, build them with compiler optimizations enabled to run the tests faster.
Quoted 7 lines
Quoted 2 lines
Maybe it is a good opportunity to test -O3 instead... Since this configuration is not covered.
Don't know if -O3 is worth it - even Gentoo developers warn against cranking it up too much.
In fact I'm surprised we don't build -O2 by default.
Do you mean in Travis or directly in ./configure?
Quoted 24 lines
Quoted 22 lines
Quoted 22 lines
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-).travis.yml +1
-1@@ -293,7 +293,7 @@ jobs: - name: "GCC check-acceptance" dist: bionic env: - - CONFIG="--enable-tools --target-list=aarch64-softmmu,alpha-softmmu,arm-softmmu,m68k-softmmu,microblaze-softmmu,mips-softmmu,mips64el-softmmu,nios2-softmmu,or1k-softmmu,ppc-softmmu,ppc64-softmmu,s390x-softmmu,sh4-softmmu,sparc-softmmu,x86_64-softmmu,xtensa-softmmu" + - CONFIG="--extra-cflags=-O2 --enable-tools --target-list=aarch64-softmmu,alpha-softmmu,arm-softmmu,m68k-softmmu,microblaze-softmmu,mips-softmmu,mips64el-softmmu,nios2-softmmu,or1k-softmmu,ppc-softmmu,ppc64-softmmu,s390x-softmmu,sh4-softmmu,sparc-softmmu,x86_64-softmmu,xtensa-softmmu" - TEST_CMD="make check-acceptance" - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-acceptance" after_script:
Quoted 11 lines · Philippe Mathieu-Daudé
Quoted 10 lines · Alex Bennée
Quoted 6 lines · Philippe Mathieu-Daudé
Quoted 2 lines · Philippe Mathieu-Daudé
As we just want the tests to succeed, build them with compiler optimizations enabled to run the tests faster.
Maybe it is a good opportunity to test -O3 instead... Since this configuration is not covered.
Quoted 6 lines
Quoted 4 lines
Don't know if -O3 is worth it - even Gentoo developers warn against cranking it up too much.
In fact I'm surprised we don't build -O2 by default.
Do you mean in Travis or directly in ./configure?
Indeed ./configure uses -O2 is by default since 2005 :)
(commits c326e0afec0 / 6f30fa853b7 / ce278618b08).
Quoted 26 lines
Quoted 25 lines
Quoted 23 lines
Quoted 23 lines
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-).travis.yml +1
-1@@ -293,7 +293,7 @@ jobs: - name: "GCC check-acceptance" dist: bionic env: - - CONFIG="--enable-tools --target-list=aarch64-softmmu,alpha-softmmu,arm-softmmu,m68k-softmmu,microblaze-softmmu,mips-softmmu,mips64el-softmmu,nios2-softmmu,or1k-softmmu,ppc-softmmu,ppc64-softmmu,s390x-softmmu,sh4-softmmu,sparc-softmmu,x86_64-softmmu,xtensa-softmmu" + - CONFIG="--extra-cflags=-O2 --enable-tools --target-list=aarch64-softmmu,alpha-softmmu,arm-softmmu,m68k-softmmu,microblaze-softmmu,mips-softmmu,mips64el-softmmu,nios2-softmmu,or1k-softmmu,ppc-softmmu,ppc64-softmmu,s390x-softmmu,sh4-softmmu,sparc-softmmu,x86_64-softmmu,xtensa-softmmu" - TEST_CMD="make check-acceptance" - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-acceptance" after_script: