diff --git a/src/highlight/configure.ps1 b/src/highlight/configure.ps1 index 0e04784..16756ef 100755 --- a/src/highlight/configure.ps1 +++ b/src/highlight/configure.ps1 @@ -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