fix: restore target_os for linux linker arg, add documentation detail

This commit is contained in:
Ryan Walters
2025-09-09 16:49:01 -05:00
parent 4f7902fc50
commit afae3c5e7b

View File

@@ -7,7 +7,9 @@ rustflags = [
]
runner = "node"
[target.'cfg(linux)']
# despite being semantically identical to `target_os = "linux"`, the `cfg(linux)` syntax is not supported here. Who knows why...\
# https://github.com/Xevion/Pac-Man/actions/runs/17596477856
[target.'cfg(target_os = "linux")']
rustflags = [
# Manually link zlib.
# The `sdl2` crate's build script uses `libpng`, which requires `zlib`.