[registrar] Define CORECLR_RUNTIME when in the generated registrar code for CoreCLR (#11584)
This makes sure that we build the right thing, our shipped headers behave differently whether CORECLR_RUNTIME is defined or not.
This commit is contained in:
Родитель
b00b354f04
Коммит
0e957d347f
|
@ -4882,6 +4882,11 @@ namespace Registrar {
|
||||||
methods.WriteLine ("#define DEBUG 1");
|
methods.WriteLine ("#define DEBUG 1");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (App.XamarinRuntime == XamarinRuntime.CoreCLR) {
|
||||||
|
header.WriteLine ("#define CORECLR_RUNTIME");
|
||||||
|
methods.WriteLine ("#define CORECLR_RUNTIME");
|
||||||
|
}
|
||||||
|
|
||||||
header.WriteLine ("#include <stdarg.h>");
|
header.WriteLine ("#include <stdarg.h>");
|
||||||
if (SupportsModernObjectiveC) {
|
if (SupportsModernObjectiveC) {
|
||||||
methods.WriteLine ("#include <xamarin/xamarin.h>");
|
methods.WriteLine ("#include <xamarin/xamarin.h>");
|
||||||
|
|
Загрузка…
Ссылка в новой задаче