Fix the error condition for objcopy (#81304)
authorAdeel Mujahid <3840695+am11@users.noreply.github.com>
Sat, 28 Jan 2023 03:14:08 +0000 (05:14 +0200)
committerGitHub <noreply@github.com>
Sat, 28 Jan 2023 03:14:08 +0000 (19:14 -0800)
src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets

index 7d113d3..eb9f333 100644 (file)
@@ -184,7 +184,7 @@ The .NET Foundation licenses this file to you under the MIT license.
       <Output TaskParameter="ExitCode" PropertyName="_WhereSymbolStripper" />
     </Exec>
 
-    <Exec Command="command -v &quot;$(ObjCopyNameAlternative)&quot;" IgnoreExitCode="true" StandardOutputImportance="Low" Condition="'$(TargetOS)' != 'osx' and '$(CppCompilerAndLinkerAlternative)' != '' and '$(StripSymbols)' == 'true'">
+    <Exec Command="command -v &quot;$(ObjCopyNameAlternative)&quot;" IgnoreExitCode="true" StandardOutputImportance="Low" Condition="'$(TargetOS)' != 'osx' and '$(ObjCopyNameAlternative)' != '' and '$(StripSymbols)' == 'true'">
       <Output TaskParameter="ExitCode" PropertyName="_WhereSymbolStripperAlt" />
     </Exec>