Skip to content

Commit befd447

Browse files
authored
Merge pull request #6348 from jasonmolenda/debugserver-xcodeproj-build-cxx17
Update debugserver xcode proj to build with c++17
2 parents 515b592 + 85893dd commit befd447

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lldb/tools/debugserver/debugserver.xcodeproj/project.pbxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@
490490
);
491491
runOnlyForDeploymentPostprocessing = 0;
492492
shellPath = "/bin/sh -x";
493-
shellScript = "if [ \"${CONFIGURATION}\" != BuildAndIntegration ]\nthen\n if [ -n \"${DEBUGSERVER_USE_FROM_SYSTEM}\" ]\n then\n\t\tditto \"${DEVELOPER_DIR}/../SharedFrameworks/LLDB.framework/Resources/debugserver\" \"${TARGET_BUILD_DIR}/${TARGET_NAME}\"\n elif [ \"${DEBUGSERVER_DISABLE_CODESIGN}\" == \"\" ]\n then\n codesign -f -s lldb_codesign --entitlements ${SRCROOT}/../../resources/debugserver-macosx-entitlements.plist \"${TARGET_BUILD_DIR}/${TARGET_NAME}\"\n fi\nfi\n";
493+
shellScript = "if [ \"${CONFIGURATION}\" != BuildAndIntegration ]\nthen\n if [ -n \"${DEBUGSERVER_USE_FROM_SYSTEM}\" ]\n then\n\t\tditto \"${DEVELOPER_DIR}/../SharedFrameworks/LLDB.framework/Resources/debugserver\" \"${TARGET_BUILD_DIR}/${TARGET_NAME}\"\n elif [ \"${DEBUGSERVER_DISABLE_CODESIGN}\" == \"\" ]\n then\n codesign -f -s lldb_codesign --entitlements ${SRCROOT}/resources/debugserver-macosx-entitlements.plist \"${TARGET_BUILD_DIR}/${TARGET_NAME}\"\n fi\nfi\n";
494494
};
495495
/* End PBXShellScriptBuildPhase section */
496496

@@ -664,7 +664,7 @@
664664
26CE0596115C31C30022F371 /* Debug */ = {
665665
isa = XCBuildConfiguration;
666666
buildSettings = {
667-
CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
667+
CLANG_CXX_LANGUAGE_STANDARD = "c++17";
668668
CLANG_CXX_LIBRARY = "libc++";
669669
"CODE_SIGN_ENTITLEMENTS[sdk=*]" = "source/debugserver-entitlements.plist";
670670
"CODE_SIGN_ENTITLEMENTS[sdk=macosx*]" = "source/debugserver-macosx-entitlements.plist";
@@ -764,7 +764,7 @@
764764
26CE0597115C31C30022F371 /* Release */ = {
765765
isa = XCBuildConfiguration;
766766
buildSettings = {
767-
CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
767+
CLANG_CXX_LANGUAGE_STANDARD = "c++17";
768768
CLANG_CXX_LIBRARY = "libc++";
769769
"CODE_SIGN_ENTITLEMENTS[sdk=*]" = "source/debugserver-entitlements.plist";
770770
"CODE_SIGN_ENTITLEMENTS[sdk=macosx*]" = "source/debugserver-macosx-entitlements.plist";

lldb/tools/debugserver/source/MacOSX/MachProcess.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3266,7 +3266,7 @@ static bool mach_header_validity_test(uint32_t magic, uint32_t cputype) {
32663266
return m_pid; // A successful SBLaunchForDebug() returns and assigns a
32673267
// non-zero m_pid.
32683268
}
3269-
DNBLog("Failed to launch '%s' with FBS", app_bundle_path);
3269+
DNBLog("Failed to launch '%s' with FBS", app_bundle_path.c_str());
32703270
} break;
32713271
#endif
32723272
#ifdef WITH_BKS
@@ -3280,7 +3280,7 @@ static bool mach_header_validity_test(uint32_t magic, uint32_t cputype) {
32803280
return m_pid; // A successful SBLaunchForDebug() returns and assigns a
32813281
// non-zero m_pid.
32823282
}
3283-
DNBLog("Failed to launch '%s' with BKS", app_bundle_path);
3283+
DNBLog("Failed to launch '%s' with BKS", app_bundle_path.c_str());
32843284
} break;
32853285
#endif
32863286
#ifdef WITH_SPRINGBOARD
@@ -3292,7 +3292,7 @@ static bool mach_header_validity_test(uint32_t magic, uint32_t cputype) {
32923292
return m_pid; // A successful SBLaunchForDebug() returns and assigns a
32933293
// non-zero m_pid.
32943294
}
3295-
DNBLog("Failed to launch '%s' with SpringBoard", app_bundle_path);
3295+
DNBLog("Failed to launch '%s' with SpringBoard", app_bundle_path.c_str());
32963296
} break;
32973297

32983298
#endif

0 commit comments

Comments
 (0)