@@ -40,7 +40,7 @@ This package follows the official [Golang Release Policy](https://golang.org/doc
4040 - [ Alpine] ( #alpine )
4141 - [ Fedora] ( #fedora )
4242 - [ Ubuntu] ( #ubuntu )
43- - [ Mac OSX ] ( #mac-osx )
43+ - [ macOS ] ( #mac-osx )
4444 - [ Windows] ( #windows )
4545 - [ Errors] ( #errors )
4646- [ User Authentication] ( #user-authentication )
@@ -145,7 +145,7 @@ Click [here](https://golang.org/pkg/go/build/#hdr-Build_Constraints) for more in
145145If you wish to build this library with additional extensions / features, use the following command:
146146
147147``` bash
148- go build -- tags " <FEATURE>"
148+ go build -tags " <FEATURE>"
149149```
150150
151151For available features, see the extension list.
@@ -154,7 +154,7 @@ When using multiple build tags, all the different tags should be space delimited
154154Example:
155155
156156``` bash
157- go build -- tags " icu json1 fts5 secure_delete"
157+ go build -tags " icu json1 fts5 secure_delete"
158158```
159159
160160### Feature / Extension List
@@ -194,7 +194,7 @@ This package can be compiled for android.
194194Compile with:
195195
196196``` bash
197- go build -- tags " android"
197+ go build -tags " android"
198198```
199199
200200For more information see [ #201 ] ( https://github.com/mattn/go-sqlite3/issues/201 )
@@ -219,8 +219,8 @@ This library can be cross-compiled.
219219
220220In some cases you are required to the ` CC ` environment variable with the cross compiler.
221221
222- ## Cross Compiling from MAC OSX
223- The simplest way to cross compile from OSX is to use [ musl-cross ] ( https://github.com/FiloSottile/homebrew-musl-cross ) .
222+ ## Cross Compiling from macOS
223+ The simplest way to cross compile from macOS is to use [ xgo ] ( https://github.com/karalabe/xgo ) .
224224
225225Steps:
226226- Install [ musl-cross] ( https://github.com/FiloSottile/homebrew-musl-cross ) (` brew install FiloSottile/musl-cross/musl-cross ` ).
@@ -241,13 +241,13 @@ To compile this package on Linux, you must install the development tools for you
241241To compile under linux use the build tag ` linux ` .
242242
243243``` bash
244- go build -- tags " linux"
244+ go build -tags " linux"
245245```
246246
247247If you wish to link directly to libsqlite3 then you can use the ` libsqlite3 ` build tag.
248248
249249```
250- go build -- tags "libsqlite3 linux"
250+ go build -tags "libsqlite3 linux"
251251```
252252
253253### Alpine
@@ -270,34 +270,43 @@ sudo yum groupinstall "Development Tools" "Development Libraries"
270270sudo apt-get install build-essential
271271```
272272
273- ## Mac OSX
273+ ## macOS
274274
275- OSX should have all the tools present to compile this package. If not, install XCode to add all the developers tools.
275+ macOS should have all the tools present to compile this package. If not, install XCode to add all the developers tools.
276276
277277Required dependency:
278278
279279``` bash
280280brew install sqlite3
281281```
282282
283- For OSX , there is an additional package to install which is required if you wish to build the ` icu ` extension.
283+ For macOS , there is an additional package to install which is required if you wish to build the ` icu ` extension.
284284
285285This additional package can be installed with ` homebrew ` :
286286
287287``` bash
288288brew upgrade icu4c
289289```
290290
291- To compile for Mac OSX :
291+ To compile for macOS on x86 :
292292
293293``` bash
294- go build --tags " darwin"
294+ go build -tags " darwin amd64"
295+ ```
296+
297+ To compile for macOS on ARM chips:
298+
299+ ``` bash
300+ go build -tags " darwin arm64"
295301```
296302
297303If you wish to link directly to libsqlite3, use the ` libsqlite3 ` build tag:
298304
299305```
300- go build --tags "libsqlite3 darwin"
306+ # x86
307+ go build -tags "libsqlite3 darwin amd64"
308+ # ARM
309+ go build -tags "libsqlite3 darwin arm64"
301310```
302311
303312Additional information:
0 commit comments