[NativeAOT LLVM] Missing main export when using IlcExportUnmanagedEntrypoint=true
#2433
Labels
area-NativeAOT-LLVM
LLVM generation for Native AOT compilation (including Web Assembly)
If I set
IlcExportUnmanagedEntrypoint=true
, main is not exported.It can be fixed by adding
<CustomLinkerArg Include="-Wl,--export,__main_argc_argv" />
https://github.com/dotnet/runtimelab/blob/feature/NativeAOT-LLVM/src/coreclr/tools/aot/ILCompiler/Program.cs#L590
Is it correct to add such export explicitly when
IlcExportUnmanagedEntrypoint == true && NativeLib == ''
?The text was updated successfully, but these errors were encountered: