xcbuild: const can't desctruct. fix build

build failed on clang-19
fixes 82a00b78e4

(cherry picked from commit ab58983759)
(cherry picked from commit 67439e92dd9e936d334b82f692c6840afebc557d)
This commit is contained in:
Reno Dakota
2024-11-30 15:11:37 +01:00
committed by Vladimír Čunát
parent a8e4d3a32e
commit 54b8917845
@@ -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"
+ };