Skip to content

Native compilation with ICU for Apple Silicon fails #1068

@Spaider

Description

@Spaider

I'm relatively new to Golang and not sure if I get the whole picture. This is the reason I decided to create an issue but not MR yet.

I'm trying to compile go-sqlite3 with ICU extension on Apple M1 chip. It fails because #cgo directive in sqlite3_opt_icu.go specifies lib and include directories under /usr/local/opt which is supposed to be Homebrew root. But this is not a case for M1/M2 chips. Homebrew uses /opt/homebrew/opt on those machines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions