[Backport staging-24.11] xcbuild: const can't desctruct. fix build (#357484)

This commit is contained in:
Emily 2024-11-20 07:01:30 +00:00 committed by GitHub
commit 05390db1f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,7 @@ diff -Naur a/Libraries/xcsdk/Tools/xcrun.cpp b/Libraries/xcsdk/Tools/xcrun.cpp
using libutil::FSUtil;
+namespace {
+ const std::vector<const std::string> kSystemDeveloperDirs = {
+ const std::vector<std::string> kSystemDeveloperDirs = {
+ "/private/var/select/developer_dir",
+ "/private/var/db/xcode_select_link"
+ };