Skip to content

follow up to #30#31

Open
Dylan-Brotherston wants to merge 3 commits intomainfrom
dylan/fix-link_program
Open

follow up to #30#31
Dylan-Brotherston wants to merge 3 commits intomainfrom
dylan/fix-link_program

Conversation

@Dylan-Brotherston
Copy link
Copy Markdown
Collaborator

After merging #30 i noticed that sometimes clang will realpath it's files.
Eg TSAN uses llvm-symbolizer and will resolve symbolic-links when doing so.

This can cause mangled file names to be shown in autotest output.

This PR reverts link_program() to use hard-links.

But adds additional checks to ensure that the previous issues don't return:

Firstly link_program() now compares inode numbers instead of using os.path.islink()

Secondly a new function unlink_program() function is added to remove any hard-links that link_program() creates.
This is once again because of the os.rename() in run_compilers()

Dylan-Brotherston and others added 2 commits April 27, 2022 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant