Exclude compiler dependency paths from the player package

This commit is contained in:
chazmm committed 2026-09-08 19:08:59 +01:00
1 parent 8f09708c05
commit e7cb999bc2
1 file changed
+3
+3
View File
@@ -17,6 +17,9 @@ try {
# Link this invocation directly into private staging; never copy a generic cache EXE.
& cargo rustc --release --locked --target x86_64-pc-windows-msvc --target-dir $TargetDirectory -p skate-game --bin skate3rust --no-default-features -- -C extra-filename= -o "$stage/skate3rust.exe" -C "link-arg=/PDB:$symbols/skate3rust.pdb"
if ($LASTEXITCODE -ne 0) { throw 'Release compilation failed' }
# rustc also emits a dep-info file beside -o; it contains local source paths.
$depInfo = Join-Path $stage 'skate3rust.d'
if (Test-Path -LiteralPath $depInfo) { Remove-Item -LiteralPath $depInfo }
New-Item -ItemType Directory -Path target/native -Force | Out-Null
& rustc --edition 2024 --crate-type cdylib -C opt-level=3 -C panic=abort -C target-feature=+crt-static tools/asset_pipeline/refpack_native.rs -o target/native/refpack.dll
if ($LASTEXITCODE -ne 0) { throw 'Native converter compilation failed' }