Skip to content

Use shorter paths in the OUT_DIR #1253

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2025

Conversation

LeonMatthesKDAB
Copy link
Collaborator

As described in #1237, on Windows we're sometimes hitting the 260 character limit
for filepaths.

This is mostly due to a lot of nesting by Qt Creator, Corrosion and
Cargo who all include the target triple and other configuration information in the
build path.

However, we can at least reduce the character count a little bit on our
part.

For example, for qqmlengine.cxxqt.h, the path length is now reduced by
~40 characters from:

out/cxx-qt-build/target/crates/cxx-qt-lib/include/cxx-qt-lib-internals/src/qml/qqmlengine.cxxqt.h

to now:

out/cxxqtbuild/include/private/src/qml/qqmlengine.cxxqt.h

Closes #1237

As described in KDAB#1237, on Windows we're sometimes hitting the 260 character limit
for filepaths.

This is mostly due to a lot of nesting by Qt Creator, Corrosion and
Cargo who all include the target triple and other configuration information in the
build path.

However, we can at least reduce the character count a little bit on our
part.

For example, for qqmlengine.cxxqt.h, the path length is now reduced by
~40 characters from:

out/cxx-qt-build/target/crates/cxx-qt-lib/include/cxx-qt-lib-internals/src/qml/qqmlengine.cxxqt.h

to now:

out/cxxqtbuild/include/private/src/qml/qqmlengine.cxxqt.h
@LeonMatthesKDAB LeonMatthesKDAB added ⏮️ backport-candidate Change which could be backported to the stable series 🔨 build system Issues related to integrating CXX-Qt into CMake/Cargo labels Apr 10, 2025
Copy link

codecov bot commented Apr 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (64d4ee6) to head (9bb8c8e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1253   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           73        73           
  Lines        12612     12612           
=========================================
  Hits         12612     12612           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@ahayzen-kdab ahayzen-kdab left a comment

Choose a reason for hiding this comment

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

LGTM :-)

@LeonMatthesKDAB LeonMatthesKDAB merged commit 62a087c into KDAB:main Apr 11, 2025
16 checks passed
@LeonMatthesKDAB LeonMatthesKDAB mentioned this pull request Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⏮️ backport-candidate Change which could be backported to the stable series 🔨 build system Issues related to integrating CXX-Qt into CMake/Cargo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Long path names break Windows build (originally: MSVC Generator can break CMake builds)
2 participants