Skip to content

Commit 67eb223

Browse files
committed
CoreFoundation: add a workaround for Linux with the rebranch
Avoid optimizations on Linux as LICM, LoadStoreHoisting, and inlining seems to play bad tricks on range merging. This allows the AttributedString tests to pass on Linux after the rebranch. SR-15302 tracks resolving the underlying issue(s). Thanks to @etcwilde for tracking down this issue!
1 parent 599c05d commit 67eb223

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CoreFoundation/String.subproj/CFAttributedString.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
@end
2424
#endif
2525

26+
#if defined(__linux__)
27+
#pragma clang optimize off
28+
#endif
29+
2630
struct __CFAttributedString {
2731
CFRuntimeBase base;
2832
CFStringRef string;

0 commit comments

Comments
 (0)