Skip to content

Conversation

@tahonermann
Copy link
Contributor

Following the changes made for:

in commit:

Python 3.8.0 or newer is now required by at least the following tests when they are run on Windows from a substitute (virtual) drive. A substitute drive is often used as a workaround for MAX_PATH limitations on Windows. These tests are impacted because they use the lit %{?:real} path expansion syntax to expand symbolic links and substitute drives. This path expansion is implemented with Python's os.path.realpath() function which changed behavior in Python 3.8.0 with regard to expansion of substitute drives. The changes mentioned above rely on the newer Python behavior.

  • clang/test/Lexer/case-insensitive-include-absolute.c
  • clang/test/Lexer/case-insensitive-include-win.c

This change updates the LLVM Getting Started guide to note this newer Python version dependency for this relatively niche case. Python 3.6.0 remains the minimum required Python version otherwise.

@tahonermann tahonermann self-assigned this Feb 13, 2024
…esting on Windows with substitute (virtual) drives.

Following the changes made for:
- https://reviews.llvm.org/D154130: [lit][clang] Avoid realpath on Windows due to MAX_PATH limitations
in commit:
- 05d613e
Python 3.8.0 or newer is now required by at least the following tests when
they are run on Windows from a substitute (virtual) drive. A substitute drive
is often used as a workaround for MAX_PATH limitations on Windows. These tests
are impacted because they use the lit '%{?:real}' path expansion syntax to
expand symbolic links and substitute drives. This path expansion is implemented
with Python's os.path.realpath() function which changed behavior in Python 3.8.0
with regard to expansion of substitute drives. The changes mentioned above rely
on the newer Python behavior.
- clang/test/Lexer/case-insensitive-include-absolute.c
- clang/test/Lexer/case-insensitive-include-win.c

This change updates the LLVM Getting Started guide to note this newer Python
version dependency for this relatively niche case. Python 3.6.0 remains the
minimum required Python version otherwise.
@tahonermann tahonermann force-pushed the thonerma-python-3.8.0-prereq branch from dc79067 to 09bdda2 Compare February 20, 2024 22:11
@tahonermann
Copy link
Contributor Author

The ExecutionEngine/JITLink/Generic/sectcreate.test test failure on Windows is unrelated.

Copy link
Collaborator

@AaronBallman AaronBallman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Collaborator

@shafik shafik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@tahonermann tahonermann merged commit 1d2eced into llvm:main Feb 26, 2024
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.

3 participants