Skip to content

Commit 128a793

Browse files
authored
Merge pull request #2353 from aciidb0mb3r/add-env-linux-x86-64
[Build] Add -gnu in x86_64 Linux's triple
2 parents aabebd2 + babf0ac commit 128a793

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/Build/Triple.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public struct Triple: Encodable {
122122
}
123123

124124
public static let macOS = try! Triple("x86_64-apple-macosx")
125-
public static let x86_64Linux = try! Triple("x86_64-unknown-linux")
125+
public static let x86_64Linux = try! Triple("x86_64-unknown-linux-gnu")
126126
public static let i686Linux = try! Triple("i686-unknown-linux")
127127
public static let ppc64leLinux = try! Triple("powerpc64le-unknown-linux")
128128
public static let s390xLinux = try! Triple("s390x-unknown-linux")

Utilities/bootstrap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ def main():
10451045
build_target = "x86_64-apple-macosx"
10461046
elif platform.system() == 'Linux':
10471047
if platform.machine() == 'x86_64':
1048-
build_target = "x86_64-unknown-linux"
1048+
build_target = "x86_64-unknown-linux-gnu"
10491049
elif platform.machine() == "i686":
10501050
build_target = "i686-unknown-linux"
10511051
elif platform.machine() == 's390x':

0 commit comments

Comments
 (0)