Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/curly-poems-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"github.com/livekit/protocol": patch
"@livekit/protocol": patch
---

Build utils/hwstats on darwin without cgo
2 changes: 2 additions & 0 deletions utils/hwstats/cpu_all.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !(darwin && !cgo)

package hwstats

import (
Expand Down
2 changes: 1 addition & 1 deletion utils/hwstats/cpu_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build darwin
//go:build darwin && cgo

package hwstats

Expand Down
2 changes: 1 addition & 1 deletion utils/hwstats/cpu_null.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !(linux || darwin)
//go:build !linux && !(darwin && cgo)

package hwstats

Expand Down