Skip to content

Commit

Permalink
Fix iOS/Android sample diagnostics config (#89725)
Browse files Browse the repository at this point in the history
  • Loading branch information
lateralusX authored Aug 2, 2023
1 parent 177053e commit 63f4c6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/mono/sample/Android/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ DEPLOY_AND_RUN?=true
#If DIAGNOSTIC_PORTS is enabled, RUNTIME_COMPONENTS must also be enabled.
#If RUNTIME_COMPONENTS is enabled, DIAGNOSTIC_PORTS is optional.
#If RUNTIME_COMPONENTS is enabled, DIAGNOSTIC_PORTS is disabled, use DOTNET_DiagnosticPorts when launching application to enable diagnostics.
#RUNTIME_COMPONENTS=diagnostics_tracing
#RUNTIME_COMPONENTS=marshal-ilgen;diagnostics_tracing
#DIAGNOSTIC_PORTS=10.0.2.2:9000,nosuspend
#DIAGNOSTIC_PORTS=10.0.2.2:9000,suspend
#DIAGNOSTIC_PORTS=$(DOTNET_DiagnosticPorts)
Expand Down
16 changes: 9 additions & 7 deletions src/mono/sample/iOS/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ STRIP_DEBUG_SYMBOLS?=false # only used when measuring SOD via build-appbundle ma
#If DIAGNOSTIC_PORTS is enabled, RUNTIME_COMPONENTS must also be enabled.
#If RUNTIME_COMPONENTS is enabled, DIAGNOSTIC_PORTS is optional.
#If RUNTIME_COMPONENTS is enabled, DIAGNOSTIC_PORTS is disabled, use DOTNET_DiagnosticPorts when launching application to enable diagnostics.
#RUNTIME_COMPONENTS=diagnostics_tracing
#RUNTIME_COMPONENTS=marshal-ilgen;diagnostics_tracing
#DIAGNOSTIC_PORTS=127.0.0.1:9000,nosuspend
#DIAGNOSTIC_PORTS=127.0.0.1:9000,suspend
#DIAGNOSTIC_PORTS=$(DOTNET_DiagnosticPorts)
Expand Down Expand Up @@ -43,8 +43,8 @@ run: clean appbuilder
/p:TargetArchitecture=$(MONO_ARCH) \
/p:MonoEnableLLVM=$(USE_LLVM) \
/p:DeployAndRun=$(DEPLOY_AND_RUN) \
/p:RuntimeComponents="$(RUNTIME_COMPONENTS)" \
/p:DiagnosticPorts="$(DIAGNOSTIC_PORTS)" \
'/p:RuntimeComponents="$(RUNTIME_COMPONENTS)"' \
'/p:DiagnosticPorts="$(DIAGNOSTIC_PORTS)"' \
/bl

run-sim: clean appbuilder
Expand All @@ -55,8 +55,8 @@ run-sim: clean appbuilder
/p:MonoEnableLLVM=$(USE_LLVM) \
/p:MonoForceInterpreter=false \
/p:DeployAndRun=$(DEPLOY_AND_RUN) \
/p:RuntimeComponents="$(RUNTIME_COMPONENTS)" \
/p:DiagnosticPorts="$(DIAGNOSTIC_PORTS)" \
'/p:RuntimeComponents="$(RUNTIME_COMPONENTS)"' \
'/p:DiagnosticPorts="$(DIAGNOSTIC_PORTS)"' \
/bl

run-sim-interp: clean appbuilder
Expand All @@ -67,8 +67,8 @@ run-sim-interp: clean appbuilder
/p:MonoEnableLLVM=$(USE_LLVM) \
/p:MonoForceInterpreter=true \
/p:DeployAndRun=$(DEPLOY_AND_RUN) \
/p:RuntimeComponents="$(RUNTIME_COMPONENTS)" \
/p:DiagnosticPorts="$(DIAGNOSTIC_PORTS)" \
'/p:RuntimeComponents="$(RUNTIME_COMPONENTS)"' \
'/p:DiagnosticPorts="$(DIAGNOSTIC_PORTS)"' \
/bl

run-catalyst: clean appbuilder
Expand All @@ -80,6 +80,7 @@ run-catalyst: clean appbuilder
/p:MonoForceInterpreter=false \
/p:DeployAndRun=$(DEPLOY_AND_RUN) \
/p:EnableAppSandbox=$(APP_SANDBOX) \
'/p:RuntimeComponents="$(RUNTIME_COMPONENTS)"' \
/bl

run-catalyst-interp: clean appbuilder
Expand All @@ -91,6 +92,7 @@ run-catalyst-interp: clean appbuilder
/p:MonoForceInterpreter=true \
/p:DeployAndRun=$(DEPLOY_AND_RUN) \
/p:EnableAppSandbox=$(APP_SANDBOX) \
'/p:RuntimeComponents="$(RUNTIME_COMPONENTS)"' \
/bl

clean:
Expand Down

0 comments on commit 63f4c6e

Please sign in to comment.