File: ada-nobiarch-check.diff

package info (click to toggle)
gcc-6 6.3.0-18%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 97,120 kB
  • sloc: makefile: 2,249; sh: 956; python: 829; perl: 165; awk: 23; cpp: 14
file content (20 lines) | stat: -rw-r--r-- 855 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# DP: For biarch builds, disable the gnat testsuite for the non-default
# architecture (no biarch support in gnat yet).

Index: b/src/gcc/Makefile.in
===================================================================
--- a/src/gcc/Makefile.in
+++ b/src/gcc/Makefile.in
@@ -4510,7 +4510,11 @@
 	if [ -f $${rootme}/../expect/expect ] ; then  \
 	   TCL_LIBRARY=`cd .. ; cd $${srcdir}/../tcl/library ; ${PWD_COMMAND}` ; \
 	    export TCL_LIBRARY ; fi ; \
-	$(RUNTEST) --tool $* $(RUNTESTFLAGS))
+	if [ "$*" = gnat ]; then \
+	  runtestflags="`echo '$(RUNTESTFLAGS)' | sed -r 's/,-m(32|64|x32)//g;s/,-mabi=(n32|64)//g'`"; \
+	  case "$$runtestflags" in *\\{\\}) runtestflags=; esac; \
+	fi; \
+	$(RUNTEST) --tool $* $$runtestflags)
 
 $(patsubst %,%-subtargets,$(filter-out $(lang_checks_parallelized),$(lang_checks))): check-%-subtargets:
 	@echo check-$*