Skip to content

Fix two test build configuration issues. - #164

Closed
ccpisheden wants to merge 1 commit into
mainfrom
python-stdlib-path-fix
Closed

ccpisheden wants to merge 1 commit into
mainfrom
python-stdlib-path-fix

Conversation

@ccpisheden

@ccpisheden ccpisheden commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR fixes two separate bugs:

  • FindPython reports Python3_STDLIB as a native path, so on Windows it contains backslashes. Embedded in the PYTHON_LIB_PATH C string literal these became escape sequences (C4129), which fails the TrinityPythonTest targets with warnings as errors. Convert it to a CMake path with forward slashes, like the other PYTHONPATH entries.

  • TrinityAL's tests call gtest_discover_tests without including the GoogleTest module. It only worked because the shader compiler's module-mode find_package(GTest) included it first, so configuring without BUILD_SHADER_COMPILER failed. Include it explicitly, as the Trinity tests already do.

Linked issue (optional)

None, just fixes local annoyances for me.

Testing

These two issues no longer cause issues.

AI assistance

Claude used to diagnose and fix, minor tweaks by human.

FindPython reports Python3_STDLIB as a native path, so on Windows it
contains backslashes. Embedded in the PYTHON_LIB_PATH C string literal
these became escape sequences (C4129), which fails the
TrinityPythonTest targets with warnings as errors. Convert it to a
CMake path with forward slashes, like the other PYTHONPATH entries.

TrinityAL's tests call gtest_discover_tests without including the
GoogleTest module. It only worked because the shader compiler's
module-mode find_package(GTest) included it first, so configuring
without BUILD_SHADER_COMPILER failed. Include it explicitly, as the
Trinity tests already do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ccpisheden

Copy link
Copy Markdown
Contributor Author

Superseded by #170. The STDLIB path conversion isn't needed with CMake 4.3+, which converts it itself.

@ccpisheden ccpisheden closed this Dec 1, 2026
@ccpisheden
ccpisheden deleted the python-stdlib-path-fix branch December 1, 2026 11:57
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