From afae3c5e7bacf24b8e7d717a138539d5c25244d3 Mon Sep 17 00:00:00 2001 From: Ryan Walters Date: Tue, 9 Sep 2025 16:49:01 -0500 Subject: [PATCH] fix: restore target_os for linux linker arg, add documentation detail --- .cargo/config.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 78fb7e9..275e984 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -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`.