Commit dda0049
committed
Fix identifying Mono vs CoreCLR runtimes
We currently use `mono-gc.h` as signal that the runtime is a mono-based
runtime. Unfortuatnely, that file is only included with 7.0. This makes
us mis-identify Mono-based 6.0 runtimes as CoreCLR-based instead.
Instead, use libcoreclrtraceptprovider.so which is available
CoreCLR-based platforms (eg, x86_64) but not Mono-based ones. This file
exists on 6.0 and later:
$ find /usr/lib64/dotnet -iname libcoreclrtraceptprovider.so
/usr/lib64/dotnet/shared/Microsoft.NETCore.App/8.0.0-preview.5.23280.8/libcoreclrtraceptprovider.so
/usr/lib64/dotnet/shared/Microsoft.NETCore.App/7.0.7/libcoreclrtraceptprovider.so
/usr/lib64/dotnet/shared/Microsoft.NETCore.App/6.0.18/libcoreclrtraceptprovider.so1 parent 4e01bbb commit dda0049
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
64 | 67 | | |
65 | | - | |
| 68 | + | |
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
| |||
137 | 140 | | |
138 | 141 | | |
139 | 142 | | |
140 | | - | |
| 143 | + | |
141 | 144 | | |
142 | 145 | | |
143 | 146 | | |
| |||
153 | 156 | | |
154 | 157 | | |
155 | 158 | | |
156 | | - | |
| 159 | + | |
157 | 160 | | |
158 | 161 | | |
159 | 162 | | |
| |||
0 commit comments