Skip to content

Commit 75d9b97

Browse files
committed
Fix misleading messages in test output.
1 parent 1937165 commit 75d9b97

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/sdk/build/Zig.Sdk.Test.targets

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
Condition="'$(CompilerMode)' == 'Zig' and '$(IsTestable)' == 'true'">
1313
<Message Text="Running tests natively..."
1414
Importance="high"
15-
Condition="'$(EmulatorCommand)' == ''" />
15+
Condition="'$(IsCrossExecuting)' == 'false'" />
1616

1717
<Zig AccessControl="$(AccessControl)"
1818
BlockExtensions="$(BlockExtensions)"
@@ -39,8 +39,6 @@
3939
ReleaseMode="$(ReleaseMode)"
4040
Sanitizers="$(Sanitizers)"
4141
Sources="@(Compile)"
42-
StandardErrorImportance="high"
43-
StandardOutputImportance="high"
4442
SymbolExports="$(SymbolExports)"
4543
SymbolVisibility="$(SymbolVisibility)"
4644
TagAnalysis="$(TagAnalysis)"
@@ -59,5 +57,9 @@
5957

6058
<Exec Command="$(EmulatorCommand) $(EmulatorArgumentPrefix)&quot;@(TestAssembly)&quot;$(EmulatorArgumentSuffix) &quot;$(ZigExePath)&quot;"
6159
Condition="'$(EmulatorCommand)' != ''" />
60+
61+
<Message Text="A suitable binary emulator is not available for '$(HostRuntimeIdentifier)' -> '$(TargetRuntimeIdentifier)'"
62+
Importance="high"
63+
Condition="'$(IsCrossExecuting)' == 'true' and '$(EmulatorCommand)' == ''" />
6264
</Target>
6365
</Project>

0 commit comments

Comments
 (0)