Skip to content

Commit

Permalink
Add compiler check for environment extension
Browse files Browse the repository at this point in the history
  • Loading branch information
dmhts committed Sep 23, 2024
1 parent b3b0219 commit b5d5b57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/ScipioKit/BuildOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,14 @@ extension ExtraFlags {
}
}

#if compiler(>=6.0)

extension Environment: @retroactive Hashable {
public func hash(into hasher: inout Hasher) {
for item in self {
hasher.combine(item.value)
}
}
}

#endif

0 comments on commit b5d5b57

Please sign in to comment.