Skip to content

Commit

Permalink
[skip-changelog] Allow non-cgo builds for Darwin (#2213)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Jun 13, 2023
1 parent 422a42c commit 5725c02
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions i18n/detect_darwin.go → i18n/detect_cgo_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
// Arduino software without disclosing the source code of your own applications.
// To purchase a commercial license, send an email to license@arduino.cc.

//go:build darwin && cgo

package i18n

/*
Expand Down
22 changes: 22 additions & 0 deletions i18n/detect_nocgo_darwin.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// This file is part of arduino-cli.
//
// Copyright 2020 ARDUINO SA (http://www.arduino.cc/)
//
// This software is released under the GNU General Public License version 3,
// which covers the main part of arduino-cli.
// The terms of this license can be found at:
// https://www.gnu.org/licenses/gpl-3.0.en.html
//
// You can be released from the requirements of the above licenses by purchasing
// a commercial license. Buying such a license is mandatory if you want to
// modify or otherwise use the software for commercial activities involving the
// Arduino software without disclosing the source code of your own applications.
// To purchase a commercial license, send an email to license@arduino.cc.

//go:build darwin && !cgo

package i18n

func getLocaleIdentifier() string {
return getLocaleIdentifierFromEnv()
}

0 comments on commit 5725c02

Please sign in to comment.