Skip to content
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

build cxx-qt-lib autogenerated C++ with Cargo instead of CMake #174

Merged
merged 5 commits into from
Aug 2, 2022

Conversation

Be-ing
Copy link
Contributor

@Be-ing Be-ing commented Jul 25, 2022

qt-build/src/lib.rs Outdated Show resolved Hide resolved
qt-build/src/lib.rs Outdated Show resolved Hide resolved
qt-build/src/lib.rs Outdated Show resolved Hide resolved
qt-build/src/lib.rs Outdated Show resolved Hide resolved
cxx-qt-lib/src/lib.rs Outdated Show resolved Hide resolved
qt-build/src/lib.rs Outdated Show resolved Hide resolved
@Be-ing Be-ing force-pushed the cxx-qt-lib_cxx-build branch 2 times, most recently from 4028c85 to ed4b8e8 Compare August 2, 2022 04:02
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 :-)

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.

Hmm i think we either need to fix the locking issue or find a workaround, it's failure rate is too high to accept even for a flaky temporary thing.

I guess possible solutions are

  • Add a commit to use cargo workspaces in this branch
  • Let rust wait / keep trying until it's successful in copying the file
  • Tell CMake to not run the execute_process in parallel to other CMake tasks

@Be-ing Be-ing force-pushed the cxx-qt-lib_cxx-build branch 3 times, most recently from a7fd284 to 4229d9f Compare August 2, 2022 12:30
@Be-ing Be-ing force-pushed the cxx-qt-lib_cxx-build branch 4 times, most recently from 9aded7f to 82d5875 Compare August 2, 2022 13:03
This is intended to be shared between build.rs scripts regardless of
whether cc, cpp_build, or cxx_build is used.
This is a step towards obviating the need for CMake to build
autogenerated code, which will simplify the build process by moving
the invocation of Cargo to CMake build time rather than CMake configure
time.
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 :-)

@ahayzen-kdab ahayzen-kdab merged commit 71e0a4f into KDAB:main Aug 2, 2022
@Be-ing Be-ing deleted the cxx-qt-lib_cxx-build branch August 2, 2022 14:55
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.

2 participants