diff options
author | Benjamin Barenblat <bbaren@google.com> | 2021-01-31 14:55:01 -0500 |
---|---|---|
committer | Benjamin Barenblat <bbaren@google.com> | 2021-01-31 15:04:46 -0500 |
commit | a75ffd71441bd4607159a99a2371b33e4d217bb8 (patch) | |
tree | f304205f4e7652d8e3cadaa2c60d810a4ddc93de /debian/rules | |
parent | c851df16ca33cdb0bfcda414c49c7e93f76bd677 (diff) | |
download | abseil-a75ffd71441bd4607159a99a2371b33e4d217bb8.tar.gz abseil-a75ffd71441bd4607159a99a2371b33e4d217bb8.tar.bz2 abseil-a75ffd71441bd4607159a99a2371b33e4d217bb8.zip |
Avoid OOM on mipsel buildds by disabling unit tests there
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules index 859e20ba..a20f22b8 100755 --- a/debian/rules +++ b/debian/rules @@ -15,6 +15,15 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow reproducible=+fixfilepath +# Some of the Abseil tests exhaust virtual memory on our mipsel buildds. +# TODO(bbaren): Key this off available virtual memory rather than a particular +# architecture. +ifeq ($(shell dpkg-architecture -qDEB_HOST_ARCH),mipsel) +ABSL_RUN_TESTS=OFF +else +ABSL_RUN_TESTS=ON +endif + %: dh $@ @@ -24,7 +33,7 @@ override_dh_auto_clean: override_dh_auto_configure: dh_auto_configure -Bstatic -- -DCMAKE_CXX_STANDARD=14 -DBUILD_SHARED_LIBS=OFF - dh_auto_configure -Bshared -- -DCMAKE_CXX_STANDARD=14 -DBUILD_SHARED_LIBS=ON -DABSL_RUN_TESTS=ON -DABSL_USE_GOOGLETEST_HEAD=OFF + dh_auto_configure -Bshared -- -DCMAKE_CXX_STANDARD=14 -DBUILD_SHARED_LIBS=ON -DABSL_RUN_TESTS=$ABSL_RUN_TESTS -DABSL_USE_GOOGLETEST_HEAD=OFF override_dh_auto_build: dh_auto_build -Bstatic |