Skip to content

Commit 5725c02

Browse files
authored
[skip-changelog] Allow non-cgo builds for Darwin (#2213)
1 parent 422a42c commit 5725c02

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

i18n/detect_darwin.go renamed to i18n/detect_cgo_darwin.go

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// Arduino software without disclosing the source code of your own applications.
1414
// To purchase a commercial license, send an email to license@arduino.cc.
1515

16+
//go:build darwin && cgo
17+
1618
package i18n
1719

1820
/*

i18n/detect_nocgo_darwin.go

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// This file is part of arduino-cli.
2+
//
3+
// Copyright 2020 ARDUINO SA (http://www.arduino.cc/)
4+
//
5+
// This software is released under the GNU General Public License version 3,
6+
// which covers the main part of arduino-cli.
7+
// The terms of this license can be found at:
8+
// https://www.gnu.org/licenses/gpl-3.0.en.html
9+
//
10+
// You can be released from the requirements of the above licenses by purchasing
11+
// a commercial license. Buying such a license is mandatory if you want to
12+
// modify or otherwise use the software for commercial activities involving the
13+
// Arduino software without disclosing the source code of your own applications.
14+
// To purchase a commercial license, send an email to license@arduino.cc.
15+
16+
//go:build darwin && !cgo
17+
18+
package i18n
19+
20+
func getLocaleIdentifier() string {
21+
return getLocaleIdentifierFromEnv()
22+
}

0 commit comments

Comments
 (0)