Skip to content

Commit ef3b3e4

Browse files
committed
Allow building cpuinfo on Darwin
Signed-off-by: Gregory Eremin <g@erem.in>
1 parent a05af62 commit ef3b3e4

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

cpuinfo.go

-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14-
//go:build linux
15-
// +build linux
16-
1714
package procfs
1815

1916
import (

cpuinfo_darwin.go

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright 2020 The Prometheus Authors
2+
// Licensed under the Apache License, Version 2.0 (the "License");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
//
6+
// http://www.apache.org/licenses/LICENSE-2.0
7+
//
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
14+
//go:build darwin
15+
// +build darwin
16+
17+
package procfs
18+
19+
var parseCPUInfo = parseCPUInfoDummy

0 commit comments

Comments
 (0)