From ac6fb73cba230a1df5365bc83693922f2dfb327c Mon Sep 17 00:00:00 2001 From: Simon Byrne Date: Tue, 23 Feb 2016 13:56:12 +0000 Subject: [PATCH] Set optimisation on ARM to -O0, which stops tests from hanging. --- Make.inc | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Make.inc b/Make.inc index 815d0c9..617175f 100644 --- a/Make.inc +++ b/Make.inc @@ -47,14 +47,6 @@ endif CFLAGS_add += -std=c99 -Wall -I$(OPENLIBM_HOME) -I$(OPENLIBM_HOME)/include -I$(OPENLIBM_HOME)/ld80 -I$(OPENLIBM_HOME)/$(ARCH) -I$(OPENLIBM_HOME)/src -DASSEMBLER -D__BSD_VISIBLE -Wno-implicit-function-declaration -# The optimization flag may be overriden with the environment variable CFLAGS. -ifeq ($(ARCH),powerpc) -# tests hang at higher optimization levels -CFLAGS ?= -O0 -else -CFLAGS ?= -O2 -endif - default: all %.c.o: %.c @@ -85,6 +77,16 @@ ifeq ($(ARCH),x86_64) override ARCH := amd64 endif +# The optimization flag may be overriden with the environment variable CFLAGS. +ifeq ($(ARCH),powerpc) +# tests hang at higher optimization levels +CFLAGS ?= -O0 +else if ($(ARCH),arm) +CFLAGS ?= -O0 +else +CFLAGS ?= -O2 +endif + ifneq (,$(findstring MINGW,$(OS))) override OS=WINNT endif