Skip to content

Commit ad69e10

Browse files
committed
Update missing og place
1 parent a8f7097 commit ad69e10

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Scripts/bump_ag_pr.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ while [[ $# -gt 0 ]]; do
6464
done
6565

6666
SCRIPT_ROOT="$(dirname $(dirname $(filepath $0)))"
67-
OAG_REPO_DIR="$SCRIPT_ROOT/.og_repo"
67+
OAG_REPO_DIR="$SCRIPT_ROOT/.oag_repo"
6868
OPENATTRIBUTEGRAPH_ROOT="$OAG_REPO_DIR"
6969
AG_REPO_DIR="$SCRIPT_ROOT/.ag_repo"
7070

@@ -184,4 +184,4 @@ gh pr create \
184184
--base main
185185

186186
echo "✅ PR created successfully!"
187-
echo "Branch: update-ag-$TARGET_BRANCH"
187+
echo "Branch: update-ag-$TARGET_BRANCH"

Sources/OpenAttributeGraphCxx/DebugServer/DebugServer.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
OAG_EXTERN_C_BEGIN
3232
// DYLD_INTERPOSE does not work. Directly use the hook one here to match the semantics.
33-
bool og_variant_has_internal_diagnostics(const char *subsystem);
33+
bool oag_variant_has_internal_diagnostics(const char *subsystem);
3434
OAG_EXTERN_C_END
3535

3636
// MARK: DebugServer public API Implementation
@@ -265,7 +265,7 @@
265265
if (
266266
(mode & OAGDebugServerModeValid)
267267
&& !OAG::DebugServer::has_shared_server()
268-
&& og_variant_has_internal_diagnostics("org.OpenSwiftUIProject.OpenAttributeGraph")
268+
&& oag_variant_has_internal_diagnostics("org.OpenSwiftUIProject.OpenAttributeGraph")
269269
) {
270270
_shared_server = new DebugServer(mode);
271271
}

Sources/OpenAttributeGraphCxx/DebugServer/interpose.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
extern bool os_variant_has_internal_diagnostics(const char *subsystem);
1212
#endif
1313

14-
bool og_variant_has_internal_diagnostics(const char *subsystem) {
14+
bool oag_variant_has_internal_diagnostics(const char *subsystem) {
1515
if (strcmp(subsystem, "org.OpenSwiftUIProject.OpenAttributeGraph") == 0) {
1616
return true;
1717
} else if (strcmp(subsystem, "com.apple.AttributeGraph") == 0) {
@@ -30,5 +30,5 @@ bool og_variant_has_internal_diagnostics(const char *subsystem) {
3030
__attribute__((used)) static struct{ const void* replacement; const void* replacee; } _interpose_##_replacee \
3131
__attribute__ ((section ("__DATA,__interpose"))) = { (const void*)(unsigned long)&_replacement, (const void*)(unsigned long)&_replacee };
3232

33-
DYLD_INTERPOSE(og_variant_has_internal_diagnostics, os_variant_has_internal_diagnostics)
33+
DYLD_INTERPOSE(oag_variant_has_internal_diagnostics, os_variant_has_internal_diagnostics)
3434
#endif

0 commit comments

Comments
 (0)