diff --git a/.changeset/curly-poems-build.md b/.changeset/curly-poems-build.md new file mode 100644 index 000000000..3ddc94cd7 --- /dev/null +++ b/.changeset/curly-poems-build.md @@ -0,0 +1,6 @@ +--- +"github.com/livekit/protocol": patch +"@livekit/protocol": patch +--- + +Build utils/hwstats on darwin without cgo diff --git a/utils/hwstats/cpu_all.go b/utils/hwstats/cpu_all.go index a0568679a..a39579fbe 100644 --- a/utils/hwstats/cpu_all.go +++ b/utils/hwstats/cpu_all.go @@ -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 ( diff --git a/utils/hwstats/cpu_darwin.go b/utils/hwstats/cpu_darwin.go index 000050151..5aefade25 100644 --- a/utils/hwstats/cpu_darwin.go +++ b/utils/hwstats/cpu_darwin.go @@ -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 diff --git a/utils/hwstats/cpu_null.go b/utils/hwstats/cpu_null.go index 784c45ce2..651111cf3 100644 --- a/utils/hwstats/cpu_null.go +++ b/utils/hwstats/cpu_null.go @@ -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