File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ public struct Triple {
3333 public enum Arch : String {
3434 case x86_64
3535 case armv7
36+ case s390x
3637 }
3738
3839 public enum Vendor : String {
@@ -108,6 +109,8 @@ public struct Triple {
108109
109110 #if os(macOS)
110111 public static let hostTriple : Triple = . macOS
112+ #elseif os(Linux) && arch(s390x)
113+ public static let hostTriple : Triple = try ! Triple ( " s390x-unknown-linux " )
111114 #else
112115 public static let hostTriple : Triple = . linux
113116 #endif
Original file line number Diff line number Diff line change @@ -875,6 +875,8 @@ def main():
875875 # Compute the build paths.
876876 if platform .system () == 'Darwin' :
877877 build_target = "x86_64-apple-macosx10.10"
878+ elif platform .processor () == 's390x' :
879+ build_target = "s390x-unknown-linux"
878880 else :
879881 build_target = 'x86_64-unknown-linux'
880882
You can’t perform that action at this time.
0 commit comments