Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/xma2-decoder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
$library = Join-Path $env:CARGO_TARGET_DIR "debug\leonida_xma2_decoder.lib"
$smoke = Join-Path $env:RUNNER_TEMP "leonida-xma2-ffi-smoke.exe"
cl /nologo /std:c++20 /EHsc /W4 /DNDEBUG /I runtime/xma_decoder runtime/xma_decoder/tests/ffi_cpp_smoke.cpp $library "/Fe:$smoke" ws2_32.lib userenv.lib ntdll.lib
cl /nologo /std:c++20 /EHsc /W4 /DNDEBUG /I runtime/xma_decoder runtime/xma_decoder/tests/ffi_cpp_smoke.cpp $library "/Fe:$smoke" ws2_32.lib userenv.lib ntdll.lib synchronization.lib
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
& $smoke
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
4 changes: 3 additions & 1 deletion runtime/xma_decoder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ cargo test --manifest-path runtime/xma_decoder/Cargo.toml --locked
cargo build --manifest-path runtime/xma_decoder/Cargo.toml --locked
```

The C++ smoke test is run by the xma2-decoder workflow with MSVC. It links ws2_32, userenv, and ntdll for Rust's Windows standard library.
The `xma2-decoder` workflow builds and runs the C++ smoke test with MSVC. It links `ws2_32.lib`, `userenv.lib`,
`ntdll.lib`, and `synchronization.lib` for Rust's Windows standard library. `synchronization.lib` resolves the
`WaitOnAddress` and `WakeByAddress*` imports in the Rust static library.

## Use in the runtime

Expand Down
Loading