From dad3ddb6f103460f68707a65ee8456861fc8af15 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Fri, 4 Feb 2022 08:48:00 -0700 Subject: [PATCH] Use -stdlib=libc++ in script/bundle to avoid errors on Monterey I was unable to run script/bundle my local machine without this change. --- script/bundle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/bundle b/script/bundle index 7b02b06305..ecc295de9a 100755 --- a/script/bundle +++ b/script/bundle @@ -7,6 +7,9 @@ export ZED_BUNDLE=true # Install cargo-bundle 0.5.0 if it's not already installed cargo install cargo-bundle --version 0.5.0 +# Deal with versions of macOS that don't include libstdc++ headers +export CXXFLAGS="-stdlib=libc++" + # Build the app bundle for x86_64 pushd crates/zed > /dev/null cargo bundle --release --target x86_64-apple-darwin