You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EventPipe CMake was causing issues when building CoreClr due to creating two versions of ep-shared-config.h with different set of variables when targeting iOS/tvOS/Android. Both include paths ended up being added and together with EventPipe's unity build, this caused issues since the wrong ep-shared-config.h was picked up, incorrect enabled default listeners as result of having wrong values for FEATURE_PERFTRACING_DISABLE_DEFAULT_LISTEN_PORT and
FEATURE_PERFTRACING_PAL_TCP. Mono doesn't
have this issue since it only creates one ep-shared-config.h.
Commit makes sure we only setup on ep-shared-config.h and eventpipe libraries adds the include folder to its library targets.
Commit also adds support to set DOTNET_DiagnosticPorts as part of building Android sample to simplify enable/disable diagnostics, similar to how Mono Android sample works.
Couple of smaller adjustments to ApkBuilder.
thrownewArgumentException($"Unknown RuntimeFlavor value: {RuntimeFlavor}. '{nameof(RuntimeFlavor)}' must be one of: {string.Join(",",Enum.GetNames(typeof(RuntimeFlavorEnum)))}");
thrownewArgumentException($"Using DiagnosticPorts requires diagnostics_tracing runtime component, which was not included in 'RuntimeComponents' item group. @RuntimeComponents: '{string.Join(", ",RuntimeComponents)}'");
119
+
thrownewArgumentException($"Using DiagnosticPorts targeting Mono requires diagnostics_tracing runtime component, which was not included in 'RuntimeComponents' item group. @RuntimeComponents: '{string.Join(", ",RuntimeComponents)}'");
120
+
}
121
+
122
+
if(IsCoreCLR&&StaticLinkedRuntime)
123
+
{
124
+
thrownewArgumentException("Static linking is not supported for CoreCLR runtime");
112
125
}
113
126
114
127
// Try to get the latest build-tools version if not specified
@@ -148,11 +161,6 @@ public ApkBuilder(TaskLoggingHelper logger)
148
161
thrownewArgumentException($"{buildToolsFolder} was not found.");
thrownewArgumentException($"Unknown RuntimeFlavor value: {RuntimeFlavor}. '{nameof(RuntimeFlavor)}' must be one of: {string.Join(",",Enum.GetNames(typeof(RuntimeFlavorEnum)))}");
154
-
}
155
-
156
164
varassemblerFiles=newStringBuilder();
157
165
varassemblerFilesToLink=newStringBuilder();
158
166
varaotLibraryFiles=newList<string>();
@@ -260,22 +268,17 @@ public ApkBuilder(TaskLoggingHelper logger)
0 commit comments