File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
tests/MSBuildDeviceIntegration/Tests Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,12 @@ public void BuildBasicApplicationAndAotProfileIt ()
33
33
} ;
34
34
proj . SetAndroidSupportedAbis ( DeviceAbi ) ;
35
35
36
+ // Currently, AOT profiling won't work with dynamic runtime linking because the `libmono-profiler-aot.so` library from
37
+ // the `mono.aotprofiler.android` package depends on `libmonosgen-2.0.so` which, when dynamic linking is enabled, simply
38
+ // doesn't exist (it's linked statically into `libmonodroid.so`). AOT profiler would have to have a static library in
39
+ // the nuget in order for us to support profiling in this mode.
40
+ proj . SetProperty ( "_AndroidEnableNativeRuntimeLinking" , "False" ) ;
41
+
36
42
// TODO: only needed in .NET 6+
37
43
// See https://github.com/dotnet/runtime/issues/56989
38
44
proj . PackageReferences . Add ( KnownPackages . Mono_AotProfiler_Android ) ;
You can’t perform that action at this time.
0 commit comments