Skip to content

Commit b4292fc

Browse files
committed
workaround for building on x86_64: disable SSE
SSE appears to cause cyclic header dependency when building C++ std module. This needs investigation and an upstream fix.
1 parent 9a33623 commit b4292fc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

classes/swift-common.bbclass

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@ TOOLCHAIN = "gcc"
33

44
# appears to cause segfault
55
TARGET_CC_ARCH:remove:aarch64 = "-mbranch-protection=standard"
6+
7+
# workaround for building on x86_64: SSE appears to cause cyclic header
8+
# dependency when building C++ std module. This needs investigation and an
9+
# upstream fix
10+
TARGET_CC_ARCH:remove:x86-64 = "-march=core2"
11+
TARGET_CC_ARCH:remove:x86-64 = "-mtune=core2"
12+
TARGET_CC_ARCH:remove:x86-64 = "-msse3"
13+
TARGET_CC_ARCH:remove:x86-64 = "-mfpmath=sse"

0 commit comments

Comments
 (0)