Skip to content

Commit

Permalink
Fix PPC64 Float16 support
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Dec 27, 2024
1 parent 634cb61 commit f6235f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package/swift/swift.mk
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ SWIFTC_EXTRA_FLAGS = -Xcc -msoft-float
else ifeq ($(SWIFT_TARGET_ARCH),powerpc)
SWIFT_EXTRA_FLAGS = -mcpu=7400
SWIFTC_EXTRA_FLAGS = -Xcc -mcpu=7400
else ifeq ($(SWIFT_TARGET_ARCH),powerpc64le)
SWIFT_EXTRA_FLAGS = -DSWIFT_DTOA_PASS_FLOAT16_AS_FLOAT=1
SWIFTC_EXTRA_FLAGS = -Xcc -DSWIFT_DTOA_PASS_FLOAT16_AS_FLOAT=1
else
SWIFT_EXTRA_FLAGS =
SWIFTC_EXTRA_FLAGS =
Expand Down

0 comments on commit f6235f6

Please sign in to comment.