Skip to content

Commit e968883

Browse files
committed
completely disable 64-bit time_t on 32-bit systems
This overrides the Yocto default and may cause your program to crash if Swift packages link against other packages that do not have this disabled. Caveat emptor.
1 parent b4292fc commit e968883

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

classes/swift-common.bbclass

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# avoid conflicts with meta-clang
22
TOOLCHAIN = "gcc"
33

4+
# force disable GLIBC_64BIT_TIME_FLAGS until SwiftNIO and other common packages
5+
# are updated to support 64-bit time_t on 32-bit systems. ABI incompatibility
6+
# may cause your program to crash; you have been warned.
7+
TARGET_CC_ARCH:remove:arm = "${GLIBC_64BIT_TIME_FLAGS}"
8+
49
# appears to cause segfault
510
TARGET_CC_ARCH:remove:aarch64 = "-mbranch-protection=standard"
611

0 commit comments

Comments
 (0)