swiftlang / swift-sdk-generator

Generate Swift SDKs for cross-compilation
Apache License 2.0
182 stars 15 forks source link

Untar using `-xf` instead of `-xzf` #113

Closed fwcd closed 4 months ago

fwcd commented 4 months ago

Fixes #112

Unpacking XZ-compressed archives (like host_llvm_17.0.5_x86_64-unknown-linux.tar.xz) with GNU tar requires either using the -J flag or none at all (rather than the -z flag, which seems to be reserved for gzip). On macOS, -xzf behaves like -xf, which is likely why this issue didn't come up there.

With -xf both macOS and GNU tar automatically recognize the right format.

euanh commented 4 months ago

@swift-ci test