mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-09 17:44:48 +09:00
Enable building .dll if both 'CustomNativeMain' and 'NativeLib' are set (#103504)
* Build a .dll if 'CustomNativeMain' is set * Switch on 'NativeLib' instead for .exe args * Actually output a .dll if 'NativeLib' is set --------- Co-authored-by: Jan Kotas <jkotas@microsoft.com> Co-authored-by: Michal Strehovský <MichalStrehovsky@users.noreply.github.com>
This commit is contained in:
parent
043ae8c50d
commit
7f6318495c
2 changed files with 3 additions and 4 deletions
|
@ -92,12 +92,11 @@ The .NET Foundation licenses this file to you under the MIT license.
|
|||
<LinkerArg Condition="$(NativeDebugSymbols) == 'true'" Include="/DEBUG" />
|
||||
<!-- The runtime is not compatible with jump stubs inserted by incremental linking. -->
|
||||
<LinkerArg Include="/INCREMENTAL:NO" />
|
||||
<LinkerArg Condition="'$(LinkerSubsystem)' != ''" Include="/SUBSYSTEM:$(LinkerSubsystem)" />
|
||||
<LinkerArg Condition="'$(OutputType)' == 'WinExe' or '$(OutputType)' == 'Exe'" Include="/ENTRY:$(EntryPointSymbol) /NOEXP /NOIMPLIB" />
|
||||
<LinkerArg Condition="'$(NativeLib)' == '' and '$(LinkerSubsystem)' != ''" Include="/SUBSYSTEM:$(LinkerSubsystem)" />
|
||||
<LinkerArg Condition="'$(NativeLib)' == ''" Include="/ENTRY:$(EntryPointSymbol) /NOEXP /NOIMPLIB /STACK:$(IlcDefaultStackSize)" />
|
||||
<LinkerArg Include="/NATVIS:"$(MSBuildThisFileDirectory)NativeAOT.natvis"" />
|
||||
<LinkerArg Condition="'$(ControlFlowGuard)' == 'Guard'" Include="/guard:cf" />
|
||||
<LinkerArg Condition="'$(_targetArchitecture)' == 'x86'" Include="/safeseh" />
|
||||
<LinkerArg Condition="'$(OutputType)' == 'WinExe' or '$(OutputType)' == 'Exe'" Include="/STACK:$(IlcDefaultStackSize)" />
|
||||
<!-- Do not warn if someone declares UnmanagedCallersOnly with an entrypoint of 'DllGetClassObject' and similar -->
|
||||
<LinkerArg Include="/IGNORE:4104" />
|
||||
<!-- Opt into CETCOMPAT by default. -->
|
||||
|
|
|
@ -62,7 +62,7 @@ The .NET Foundation licenses this file to you under the MIT license.
|
|||
|
||||
<IlcOutputFileExt Condition="$(IlcOutputFileExt) == ''">$(NativeObjectExt)</IlcOutputFileExt>
|
||||
|
||||
<IsNativeExecutable Condition="'$(OutputType)' == 'Exe' or '$(OutputType)' == 'WinExe'">true</IsNativeExecutable>
|
||||
<IsNativeExecutable Condition="('$(OutputType)' == 'Exe' or '$(OutputType)' == 'WinExe') and '$(NativeLib)' == ''">true</IsNativeExecutable>
|
||||
|
||||
<NativeBinaryExt Condition="'$(IsNativeExecutable)' == 'true' and '$(_targetOS)' == 'win'">.exe</NativeBinaryExt>
|
||||
<NativeBinaryExt Condition="'$(IsNativeExecutable)' == 'true' and '$(_targetOS)' != 'win'"></NativeBinaryExt>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue