gnu: google-highway: Fix tests on i686-linux.
The tests are supposed to be skipped when there are problems with excess precision. * gnu/packages/cpp.scm (google-highway)[arguments]: Modify phases when building for i686-linux to conditionally patch the tests. Change-Id: I6381a8c9f65196fd1d7d4e4130d784863b634df5
This commit is contained in:
		
							parent
							
								
									16d2be6414
								
							
						
					
					
						commit
						4bab3a2602
					
				
					 1 changed files with 12 additions and 2 deletions
				
			
		| 
						 | 
					@ -8,7 +8,7 @@
 | 
				
			||||||
;;; Copyright © 2019 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
 | 
					;;; Copyright © 2019 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
 | 
				
			||||||
;;; Copyright © 2020, 2021 Nicolò Balzarotti <nicolo@nixo.xyz>
 | 
					;;; Copyright © 2020, 2021 Nicolò Balzarotti <nicolo@nixo.xyz>
 | 
				
			||||||
;;; Copyright © 2020 Roel Janssen <roel@gnu.org>
 | 
					;;; Copyright © 2020 Roel Janssen <roel@gnu.org>
 | 
				
			||||||
;;; Copyright © 2020, 2021, 2023 Ricardo Wurmus <rekado@elephly.net>
 | 
					;;; Copyright © 2020, 2021, 2023, 2024 Ricardo Wurmus <rekado@elephly.net>
 | 
				
			||||||
;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
 | 
					;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
 | 
				
			||||||
;;; Copyright © 2020, 2021, 2022 Vinicius Monego <monego@posteo.net>
 | 
					;;; Copyright © 2020, 2021, 2022 Vinicius Monego <monego@posteo.net>
 | 
				
			||||||
;;; Copyright © 2020, 2022 Marius Bakke <marius@gnu.org>
 | 
					;;; Copyright © 2020, 2022 Marius Bakke <marius@gnu.org>
 | 
				
			||||||
| 
						 | 
					@ -513,7 +513,17 @@ operating on batches.")
 | 
				
			||||||
    (build-system cmake-build-system)
 | 
					    (build-system cmake-build-system)
 | 
				
			||||||
    (arguments
 | 
					    (arguments
 | 
				
			||||||
     `(#:configure-flags (list "-DHWY_SYSTEM_GTEST=on"
 | 
					     `(#:configure-flags (list "-DHWY_SYSTEM_GTEST=on"
 | 
				
			||||||
                               "-DBUILD_SHARED_LIBS=ON")))
 | 
					                               "-DBUILD_SHARED_LIBS=ON")
 | 
				
			||||||
 | 
					       ,@(if (string-prefix? "i686-linux" (or (%current-system)
 | 
				
			||||||
 | 
					                                              (%current-target-system)))
 | 
				
			||||||
 | 
					             '(#:phases
 | 
				
			||||||
 | 
					               (modify-phases %standard-phases
 | 
				
			||||||
 | 
					                 (add-after 'unpack 'really-skip-precision-tests
 | 
				
			||||||
 | 
					                   (lambda _
 | 
				
			||||||
 | 
					                     (substitute* "hwy/contrib/math/math_test.cc"
 | 
				
			||||||
 | 
					                       (("Skipping math_test due to GCC issue with excess precision.*" m)
 | 
				
			||||||
 | 
					                        (string-append m "return;\n")))))))
 | 
				
			||||||
 | 
					             '())))
 | 
				
			||||||
    (native-inputs
 | 
					    (native-inputs
 | 
				
			||||||
     (list googletest))
 | 
					     (list googletest))
 | 
				
			||||||
    (home-page "https://github.com/google/highway")
 | 
					    (home-page "https://github.com/google/highway")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue