File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -558,6 +558,14 @@ Runtime.test("SwiftError layout constants for LLDB") {
558
558
let RTLD_DEFAULT = UnsafeMutableRawPointer(bitPattern: -2)
559
559
#elseif os(Linux)
560
560
let RTLD_DEFAULT = UnsafeMutableRawPointer(bitPattern: 0)
561
+ #elseif os(Android)
562
+ #if arch(arm)
563
+ let RTLD_DEFAULT = UnsafeMutableRawPointer(bitPattern: 0xffffffff)
564
+ #elseif arch(arm64)
565
+ let RTLD_DEFAULT = UnsafeMutableRawPointer(bitPattern: 0)
566
+ #else
567
+ _UnimplementedError()
568
+ #endif
561
569
#else
562
570
_UnimplementedError()
563
571
#endif
@@ -574,7 +582,7 @@ Runtime.test("SwiftError layout constants for LLDB") {
574
582
expectEqual(40, offsetof_SwiftError_typeMetadata.load(as: UInt.self))
575
583
expectEqual(72, sizeof_SwiftError.load(as: UInt.self))
576
584
#endif
577
- #elseif os(Linux)
585
+ #elseif os(Linux) || os(Android)
578
586
expectEqual(16, offsetof_SwiftError_typeMetadata.load(as: UInt.self))
579
587
expectEqual(32, sizeof_SwiftError.load(as: UInt.self))
580
588
#else
Original file line number Diff line number Diff line change 2
2
// REQUIRES: executable_test
3
3
4
4
import StdlibUnittest
5
- #if os(Linux)
5
+ #if os(Linux) || os(Android)
6
6
import Glibc
7
7
#else
8
8
import Darwin
You can’t perform that action at this time.
0 commit comments