diff options
author | James Zern <jzern@google.com> | 2018-12-04 16:38:08 -0800 |
---|---|---|
committer | James Zern <jzern@google.com> | 2018-12-04 16:38:08 -0800 |
commit | 9c8ae2de7b6b37951ad3e75651784dcf02b1e0cb (patch) | |
tree | 9219983206fc0911761f6105993aaa5e8ac9d795 /configure | |
parent | c6a89211724ca80c7c39a32167d3de6fd0c2c1bf (diff) | |
download | libvpx-9c8ae2de7b6b37951ad3e75651784dcf02b1e0cb.tar libvpx-9c8ae2de7b6b37951ad3e75651784dcf02b1e0cb.tar.gz libvpx-9c8ae2de7b6b37951ad3e75651784dcf02b1e0cb.tar.bz2 libvpx-9c8ae2de7b6b37951ad3e75651784dcf02b1e0cb.zip |
configure: test -std=c++11 before enabling unit tests
since:
77fa51003 Replace deprecated scoped_ptr with unique_ptr
the unit tests require a c++11 capable compiler; future versions of
googletest (1.9.x) will as well, so this change was inevitable if we
wanted to keep the snapshot up to date.
Change-Id: Id5c646bd10fae09e7b705b7d5fad1344f2216282
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -730,18 +730,15 @@ process_toolchain() { # Some mingw toolchains don't have pthread available by default. # Treat these more like visual studio where threading in gtest # would be disabled for the same reason. - check_cxx "$@" <<EOF && soft_enable unit_tests -int z; -EOF - check_add_cxxflags -std=c++11 && soft_enable webm_io + check_add_cxxflags -std=c++11 && soft_enable unit_tests \ + && soft_enable webm_io check_cxx "$@" <<EOF && soft_enable libyuv int z; EOF ;; *) - enabled pthread_h && check_cxx "$@" <<EOF && soft_enable unit_tests -int z; -EOF + enabled pthread_h && check_add_cxxflags -std=c++11 \ + && soft_enable unit_tests check_add_cxxflags -std=c++11 && soft_enable webm_io check_cxx "$@" <<EOF && soft_enable libyuv int z; |