Skip to content

Commit babf0ac

Browse files
committed
[Build] Add -gnu in x86_64 Linux's triple
Absense of environment in the triple seems to cause issues during debugging. Adding this to unblock my integration test but we should just switch to asking clang for the host target triple using `clang -print-target-triple`.
1 parent 1a1e849 commit babf0ac

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
@@ -1044,7 +1044,7 @@ def main():
10441044
build_target = "x86_64-apple-macosx"
10451045
elif platform.system() == 'Linux':
10461046
if platform.machine() == 'x86_64':
1047-
build_target = "x86_64-unknown-linux"
1047+
build_target = "x86_64-unknown-linux-gnu"
10481048
elif platform.machine() == "i686":
10491049
build_target = "i686-unknown-linux"
10501050
elif platform.machine() == 's390x':

0 commit comments

Comments
 (0)