Skip to content

Commit c1d2d85

Browse files
authored
Use clang -print-target-triple instead of clang --version
1 parent 501a5da commit c1d2d85

File tree

1 file changed

+1
-1
lines changed
  • utils/swift_build_support/swift_build_support/products

1 file changed

+1
-1
lines changed

utils/swift_build_support/swift_build_support/products/product.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def get_linux_target_components(self, arch):
352352
vendor = 'unknown'
353353

354354
try:
355-
output = shell.capture(["clang", "--version"])
355+
output = shell.capture([self.toolchain.cc, "--print-target-triple"])
356356

357357
# clang can't handle default `*-unknown-linux-*` components on Alpine,
358358
# it needs special handling to propagate `vendor` and `abi` intact

0 commit comments

Comments
 (0)