Skip to content

Commit 43f5165

Browse files
committed
Fix GH-9566: disable assembly for Fiber on FreeBSD i386.
preparing in case there is more architectures especially the not tested.
1 parent 67bacd4 commit 43f5165

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

configure.ac

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,6 +1228,7 @@ AS_CASE([$host_cpu],
12281228
AS_CASE([$host_os],
12291229
[darwin*], [fiber_os="mac"],
12301230
[aix*|os400*], [fiber_os="aix"],
1231+
[freebsd*], [fiber_os="freebsd"],
12311232
[fiber_os="other"]
12321233
)
12331234

@@ -1251,6 +1252,15 @@ elif test "$fiber_os" = 'aix'; then
12511252
# AIX uses a different calling convention (shared with non-_CALL_ELF Linux).
12521253
# The AIX assembler isn't GNU, but the file is compatible.
12531254
fiber_asm_file="${fiber_asm_file_prefix}_xcoff_gas"
1255+
elif test "$fiber_os" = 'freebsd'; then
1256+
case $fiber_cpu in
1257+
i386*)
1258+
fiber_asm="no"
1259+
;;
1260+
*)
1261+
fiber_asm_file="${fiber_asm_file_prefix}_elf_gas"
1262+
;;
1263+
esac
12541264
elif test "$fiber_asm_file_prefix" != 'unknown'; then
12551265
fiber_asm_file="${fiber_asm_file_prefix}_elf_gas"
12561266
else

0 commit comments

Comments
 (0)