Closed yingguqing closed 2 days ago
Add code to end of file Sources/GeneratorEngine/Cache/CacheKeyProtocol.swift
extension Array: CacheKey where Element == FilePath.Component {
func hash(with hashFunction: inout some HashFunction) {
String(reflecting: Self.self).hash(with: &hashFunction)
map(\.string).joined(separator: "\n").hash(with: &hashFunction)
}
}
extension Range: CacheKey where Bound == Int {
func hash(with hashFunction: inout some HashFunction) {
String(reflecting: Self.self).hash(with: &hashFunction)
description.hash(with: &hashFunction)
}
}
Great, thank you for investigating this. Now for the PR we need test coverage before it can be considered for merging.
Fixed in #149
Hi! I am trying to cross compile for ubuntu
x86_64
andarm64
architectures. I followed the steps on the readme and cloned the repo and ranswift run swift-sdk-generator make-linux-sdk
.However, I am seeing this output:
Edit: And running again with verbose output:
Curious if this is an issue or if I am doing something wrong. I am running this on an M1 Pro Mac on macOS Sonoma with swift 5.9. Output of
uname -a
:Darwin <local host>.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul 5 22:22:52 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T8103 x86_64
Output ofswift --version
:SHA of swift-sdk-generator:
db85e25
Thanks!