Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
#32088 : add -ffloat-store flag to let gfan 0009RenderStairCase testu…
Browse files Browse the repository at this point in the history
…ite pass on 32bit machines
  • Loading branch information
Thierry Monteil committed Jul 19, 2022
1 parent 0927631 commit 561ed35
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build/pkgs/gfan/spkg-install.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ cd src
# clash of log2 macro with standard library (C++ >= 14), #28984
find src -type f -print0 | xargs -0 sed -i.bak "s/log2/logger2/g"

# To let testsuite/0009RenderStairCase pass on 32bit machines
# See https://trac.sagemath.org/ticket/32088
case "$($CC -dumpmachine)" in
i[3456]86*)
CFLAGS+=" -ffloat-store"
;;
esac

echo "Now building gfan..."
# We don't use the makefile to install gfan so we don't need to set PREFIX
sdh_make CPPFLAGS="-I$SAGE_LOCAL/include"
Expand Down

0 comments on commit 561ed35

Please sign in to comment.