This is an archive of the discontinued LLVM Phabricator instance.

[SystemZ][z/OS]: fix lit tmp_dir to use - instead of _
ClosedPublic

Authored by NancyWang2222 on Jan 24 2022, 1:08 PM.

Details

Summary

Latest upstream change in https://reviews.llvm.org/D117179 causes lit regressions on z/OS, when TMPDIR is exported and contains _, ld linker fails, it doesnt recognize _ specified in SYSLIN. this seems a limitation on z/OS. we need to fix lit.

Diff Detail

Event Timeline

NancyWang2222 created this revision.Jan 24 2022, 1:08 PM
NancyWang2222 requested review of this revision.Jan 24 2022, 1:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 24 2022, 1:08 PM
yln accepted this revision.Jan 24 2022, 1:47 PM

Exact spelling of the temporary test directory shouldn't matter.
The z/OS linker not being able to handle this sounds like a bug... but oh my.

Nit: can we make the comment more compact, maybe:

tmp_dir = tempfile.mkdtemp(prefix='lit-tmp-')  # z/OS linker does not support '_' in paths, so use '-'

LGTM, thanks!

This revision is now accepted and ready to land.Jan 24 2022, 1:47 PM
This revision now requires review to proceed.Jan 24 2022, 1:48 PM
mstorsjo accepted this revision.Jan 24 2022, 1:55 PM

Sounds reasonable to me - I don't think any other supported OSes would have an issue with that.

This revision is now accepted and ready to land.Jan 24 2022, 1:55 PM
NancyWang2222 added a comment.EditedJan 24 2022, 2:17 PM

Exact spelling of the temporary test directory shouldn't matter.
The z/OS linker not being able to handle this sounds like a bug... but oh my.

Nit: can we make the comment more compact, maybe:

tmp_dir = tempfile.mkdtemp(prefix='lit-tmp-')  # z/OS linker does not support '_' in paths, so use '-'

LGTM, thanks!

sure. I will update comments, I will put comment in separate line since it will be too long to fix in one line

Simplify the comments

Sounds reasonable to me - I don't think any other supported OSes would have an issue with that.

Thanks.

This revision was landed with ongoing or failed builds.Jan 24 2022, 2:48 PM
This revision was automatically updated to reflect the committed changes.