Skip to content

Commit

Permalink
Fix ios build. (#1758)
Browse files Browse the repository at this point in the history
Signed-off-by: bwplotka <[email protected]>
  • Loading branch information
bwplotka authored Mar 4, 2025
1 parent 40c62f7 commit 8a42da3
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 1.21.1 / 2025-03-04

* [BUGFIX] prometheus: Revert of `Inc`, `Add` and `Observe` cumulative metric CAS optimizations (#1661), causing regressions on low contention cases.
* [BUGFIX] prometheus: Fix GOOS=ios build, broken due to process_collector_* wrong build tags.

## 1.21.0 / 2025-02-17

Expand Down
2 changes: 2 additions & 0 deletions prometheus/process_collector_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build darwin && !ios

package prometheus

import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build darwin && cgo
//go:build darwin && !ios && cgo

#include <mach/mach_init.h>
#include <mach/task.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build darwin && cgo
//go:build darwin && !ios && cgo

package prometheus

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build darwin && !cgo
//go:build darwin && !ios && !cgo

package prometheus

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build wasip1 || js
// +build wasip1 js
//go:build wasip1 || js || ios
// +build wasip1 js ios

package prometheus

Expand Down
File renamed without changes.

0 comments on commit 8a42da3

Please sign in to comment.