Skip to content

Commit 407edf3

Browse files
committed
Add condition to TargetOS property
1 parent 3283372 commit 407edf3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ The .NET Foundation licenses this file to you under the MIT license.
2121
<NativeOutputPath Condition="'$(NativeOutputPath)' == ''">$(OutputPath)native\</NativeOutputPath>
2222
<NativeCompilationDuringPublish Condition="'$(NativeCompilationDuringPublish)' == ''">true</NativeCompilationDuringPublish>
2323
<IlcBuildTasksPath Condition="'$(IlcBuildTasksPath)' == ''">$(MSBuildThisFileDirectory)..\tools\netstandard\ILCompiler.Build.Tasks.dll</IlcBuildTasksPath>
24-
<TargetOS Condition="$(RuntimeIdentifier.StartsWith('win'))">windows</TargetOS>
25-
<TargetOS Condition="$(RuntimeIdentifier.StartsWith('osx'))">osx</TargetOS>
26-
<TargetOS Condition="$(RuntimeIdentifier.StartsWith('maccatalyst'))">maccatalyst</TargetOS>
27-
<TargetOS Condition="$(RuntimeIdentifier.StartsWith('iossimulator'))">iossimulator</TargetOS>
28-
<TargetOS Condition="$(RuntimeIdentifier.StartsWith('ios'))">ios</TargetOS>
29-
<TargetOS Condition="$(RuntimeIdentifier.StartsWith('tvossimulator'))">tvossimulator</TargetOS>
30-
<TargetOS Condition="$(RuntimeIdentifier.StartsWith('tvos'))">tvos</TargetOS>
31-
<TargetOS Condition="$(RuntimeIdentifier.StartsWith('freebsd'))">freebsd</TargetOS>
24+
<TargetOS Condition="'$(TargetOS)' == '' and $(RuntimeIdentifier.StartsWith('win'))">windows</TargetOS>
25+
<TargetOS Condition="'$(TargetOS)' == '' and $(RuntimeIdentifier.StartsWith('osx'))">osx</TargetOS>
26+
<TargetOS Condition="'$(TargetOS)' == '' and $(RuntimeIdentifier.StartsWith('maccatalyst'))">maccatalyst</TargetOS>
27+
<TargetOS Condition="'$(TargetOS)' == '' and $(RuntimeIdentifier.StartsWith('iossimulator'))">iossimulator</TargetOS>
28+
<TargetOS Condition="'$(TargetOS)' == '' and $(RuntimeIdentifier.StartsWith('ios'))">ios</TargetOS>
29+
<TargetOS Condition="'$(TargetOS)' == '' and $(RuntimeIdentifier.StartsWith('tvossimulator'))">tvossimulator</TargetOS>
30+
<TargetOS Condition="'$(TargetOS)' == '' and $(RuntimeIdentifier.StartsWith('tvos'))">tvos</TargetOS>
31+
<TargetOS Condition="'$(TargetOS)' == '' and $(RuntimeIdentifier.StartsWith('freebsd'))">freebsd</TargetOS>
3232
<TargetOS Condition="'$(TargetOS)' == ''">linux</TargetOS>
3333
<NativeDebugSymbols Condition="$(DebugSymbols) == 'true' or ($(DebugType) != 'none' and $(DebugType) != '')">true</NativeDebugSymbols>
3434
<!-- Workaround for https://github.com/dotnet/runtimelab/issues/771 -->

0 commit comments

Comments
 (0)