Clang doesn't append .exe automatically

This commit is contained in:
Egor Tensin 2021-01-01 11:21:32 +03:00
parent 9b71c16666
commit 685da103bf

View file

@ -67,7 +67,7 @@ jobs:
$flags += @(
'-x', 'c++',
'-std=c++14',
'-o', 'foo',
'-o', 'foo.exe',
'foo.cpp',
'-lstdc++'
)
@ -83,7 +83,7 @@ jobs:
Doing something #2
Doing something #3
"@
$actual = & (Join-Path . foo)
$actual = & (Join-Path . foo.exe)
$actual = $actual -join [Environment]::NewLine
$($actual -eq $expected) -or $(throw @"
Unexpected output: