Skip to content

Commit

Permalink
Do not run chmod on Windows (#88174)
Browse files Browse the repository at this point in the history
These targets were written before we supported cross-OS compilation, but now it's sort of possible.
  • Loading branch information
MichalStrehovsky authored Jun 29, 2023
1 parent f99ebea commit cc585f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ The .NET Foundation licenses this file to you under the MIT license.
<Exec Command="&quot;$(CppLibCreator)&quot; @&quot;$(NativeIntermediateOutputPath)lib.rsp&quot;" Condition="'$(_targetOS)' == 'win' and '$(NativeLib)' == 'Static'" />

<!-- remove executable flag -->
<Exec Command="chmod 644 &quot;$(NativeBinary)&quot;" Condition="'$(_targetOS)' != 'win' and '$(NativeLib)' == 'Shared'" />
<Exec Command="chmod 644 &quot;$(NativeBinary)&quot;" Condition="'$(NativeLib)' == 'Shared' and !$([MSBuild]::IsOSPlatform('Windows'))" />

<!-- strip symbols, see https://github.com/dotnet/runtime/blob/5d3288d/eng/native/functions.cmake#L374 -->
<Exec Condition="'$(StripSymbols)' == 'true' and '$(_targetOS)' != 'win' and '$(_IsApplePlatform)' != 'true'"
Expand Down

0 comments on commit cc585f6

Please sign in to comment.