diff mbox

[go] : Compile go checks with $(GOCFLAGS)

Message ID CAFULd4aSiNDbSknTcBxbPSRO1QbHWg9kchPvx_4na5XdWjT5EA@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak July 6, 2011, 5:30 p.m. UTC
Hello!

IMO, it makes sense to compile go tests with the same pack of flags as
the library. Additionally, this solves an issue with extra compile
flags (i.e. -mieee) that needs to be added to handle NaN/Inf.

Patch was tested on x86_64-pc-linux-gnu {, -m32} and
alphaev68-pc-linux-gnu (where the patch fixes all FPE related
testsuite failures due to missing -mieee flags).

Uros.

Comments

Ian Lance Taylor July 6, 2011, 7:52 p.m. UTC | #1
Uros Bizjak <ubizjak@gmail.com> writes:

> IMO, it makes sense to compile go tests with the same pack of flags as
> the library. Additionally, this solves an issue with extra compile
> flags (i.e. -mieee) that needs to be added to handle NaN/Inf.
>
> Patch was tested on x86_64-pc-linux-gnu {, -m32} and
> alphaev68-pc-linux-gnu (where the patch fixes all FPE related
> testsuite failures due to missing -mieee flags).

Approved and applied.

Thanks.

Ian
diff mbox

Patch

Index: Makefile.in
===================================================================
--- Makefile.in	(revision 175904)
+++ Makefile.in	(working copy)
@@ -1937,7 +1937,7 @@ 
 
 # Check a package.
 CHECK = \
-	GC="$(GOC) -L `${PWD_COMMAND}` -L `${PWD_COMMAND}`/.libs"; \
+	GC="$(GOC) $(GOCFLAGS) -L `${PWD_COMMAND}` -L `${PWD_COMMAND}`/.libs"; \
 	export GC; \
 	RUNTESTFLAGS="$(RUNTESTFLAGS)"; \
 	export RUNTESTFLAGS; \
Index: Makefile.am
===================================================================
--- Makefile.am	(revision 175904)
+++ Makefile.am	(working copy)
@@ -1619,7 +1619,7 @@ 
 
 # Check a package.
 CHECK = \
-	GC="$(GOC) -L `${PWD_COMMAND}` -L `${PWD_COMMAND}`/.libs"; \
+	GC="$(GOC) $(GOCFLAGS) -L `${PWD_COMMAND}` -L `${PWD_COMMAND}`/.libs"; \
 	export GC; \
 	RUNTESTFLAGS="$(RUNTESTFLAGS)"; \
 	export RUNTESTFLAGS; \