Skip to content

Commit 1be723d

Browse files
committed
sys-devel/gcc-14.2.0: avoid using incompatible __FLT_EVAL_METHOD__
For GCC to use FLT16 mode it needs its own fix-included headers, so during build it should not try to use it, as the system headers don't support this. Signed-off-by: Fabian Groffen <[email protected]>
1 parent 2f9568f commit 1be723d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sys-devel/gcc/gcc-14.2.0.ebuild

+9
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,15 @@ src_configure() {
134134
;;
135135
esac
136136

137+
case "${CTARGET}" in
138+
arm64-apple-darwin*)
139+
# math.h from SDKs don't have FLOAT16 support, so we need to
140+
# wait until fix-included headers are there with using it
141+
# this flag forces GCC not to use FLT16 via __FLT_EVAL_METHOD__
142+
myconf+=( 'CFLAGS_FOR_TARGET="-fpermitted-flt-eval-methods=c11"' )
143+
;;
144+
esac
145+
137146
# Since GCC 4.1.2 some non-posix (?) /bin/sh compatible code is used, at
138147
# least on Solaris, and AIX /bin/sh is way too slow,
139148
# so force it to use $BASH (that portage uses) - it can't be EPREFIX

0 commit comments

Comments
 (0)