Skip to content

Commit

Permalink
add PKG_CONFIG_PATH for macos-14
Browse files Browse the repository at this point in the history
  • Loading branch information
smdn committed May 26, 2024
1 parent 8b0867f commit 2aa3a02
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/highlight/configure.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,24 @@ function Build-ConfigMk {
[System.Runtime.InteropServices.RuntimeInformation]::RuntimeIdentifier.StartsWith('osx.') -or
[System.Runtime.InteropServices.RuntimeInformation]::RuntimeIdentifier.StartsWith('osx-')
) {
# Instructions suggested by homebrew:
# Instructions suggested by homebrew (macos-12):
# For compilers to find lua@5.3 you may need to set:
# export LDFLAGS="-L/usr/local/opt/lua@5.3/lib"
# export CPPFLAGS="-I/usr/local/opt/lua@5.3/include"
# For pkg-config to find lua@5.3 you may need to set:
# export PKG_CONFIG_PATH="/usr/local/opt/lua@5.3/lib/pkgconfig"
$Env:PKG_CONFIG_PATH = "/usr/local/opt/lua@5.3/lib/pkgconfig"
#
# Instructions suggested by homebrew (macos-14):
# For compilers to find lua@5.3 you may need to set:
# export LDFLAGS="-L/opt/homebrew/opt/lua@5.3/lib"
# export CPPFLAGS="-I/opt/homebrew/opt/lua@5.3/include"
# For pkg-config to find lua@5.3 you may need to set:
# export PKG_CONFIG_PATH="/opt/homebrew/opt/lua@5.3/lib/pkgconfig"

$Env:PKG_CONFIG_PATH =
"/opt/homebrew/opt/lua@5.3/lib/pkgconfig;" +
"/usr/local/opt/lua@5.3/lib/pkgconfig;" +
$Env:PKG_CONFIG_PATH
}

Get-Command -ErrorAction:SilentlyContinue pkg-config | Out-Null
Expand Down

0 comments on commit 2aa3a02

Please sign in to comment.