Add mold dependency to fix build on Ubuntu 24.10 (#23230)

Mikhail Filippov and Peter Tripp created

Co-authored-by: Peter Tripp <peter@zed.dev>

Change summary

script/linux | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

script/linux 🔗

@@ -46,7 +46,7 @@ if [[ -n $apt ]]; then
     musl-tools
     musl-dev
   )
-  if (grep -qP 'PRETTY_NAME="(Linux Mint 22|.+24\.04)' /etc/os-release); then
+  if (grep -qP 'PRETTY_NAME="(Linux Mint 22|.+24\.(04|10))' /etc/os-release); then
     deps+=( mold libstdc++-14-dev )
   elif (grep -qP 'PRETTY_NAME="((Debian|Raspbian).+12|Linux Mint 21|.+22\.04)' /etc/os-release); then
     deps+=( mold libstdc++-12-dev )