mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:30:53 +01:00
[PR #750] [CLOSED] spirv_asm: refuse an output that aliases the source (OLD-10025) #788
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#788
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/750
Author: @abnalstlll-byte
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:restore/old-10025-spirv-asm-alias📝 Commits (1)
1142836spirv_asm: refuse an output that aliases the source📊 Changes
2 files changed (+33 additions, -0 deletions)
View changed files
📝
tests/test_spirv_asm.py(+30 -0)📝
tools/spirv_asm.py(+3 -0)📄 Description
### Summary
Restores and updates work from draft PR #293 (
old-pr/10025/ itemOLD-10025).Original commit by @igorborgest (
8e33f7866).tools/spirv_asm.pypreviously permitted an output-oargument that aliased the source.spvasmfile, clobbering the source file on write.This change uses
same_report_pathto detect path aliasing (direct same path,..canonicalizations, symlinks, and hardlinks) and refuses the command with an error (ap.error("output must not overwrite the source")).Verification
python -I scripts/check_no_game_data.py tools/spirv_asm.py tests/test_spirv_asm.py-> Clean (no game data)python -m unittest tests/test_spirv_asm.py-> 36/36 PASS, 1 skip in 3.26subi/main(2d73c242f).AI-assisted verification and rebase by Antigravity (Autonomous Direct Mode).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.