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

Meta project fixes #5

Merged

Conversation

Be-ing
Copy link

@Be-ing Be-ing commented Dec 1, 2023

No description provided.

No need to change the privacy of these; just need to have the
symbols referenced within the staticlib crate.
to avoid linking failures as described in comment
@@ -202,10 +202,13 @@ endif()
set(CARGO_TARGET_DIR "${CMAKE_BINARY_DIR}/${BUILD_DIR}/cargo/build")

# Add CMake tests for `cargo test/clippy/fmt/doc`.
add_test(NAME cargo_tests COMMAND cargo test --features link_qt_object_files --all-targets --target-dir
${CARGO_TARGET_DIR})
add_test(NAME cargo_doc_tests COMMAND cargo test --features link_qt_object_files --doc --target-dir
Copy link
Owner

Choose a reason for hiding this comment

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

can --all-targets and --exclude not be combined? So that it does "all except qml-meta-project"

Copy link
Owner

Choose a reason for hiding this comment

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

Also this failed to build on Windows Qt 5 🤔

Copy link
Author

Choose a reason for hiding this comment

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

--exclude only works with --workspace, not --all-targets

@Be-ing
Copy link
Author

Be-ing commented Dec 1, 2023

I've tried disabling parallelization in both CMake and Cargo... I think we've stumbled on a bug in rustc 😵 Why it only happens with Qt5, I have no idea...

@ahayzen-kdab
Copy link
Owner

Fun, we might need to try on a real Windows system to see what is going on.

@ahayzen-kdab
Copy link
Owner

Lets merge this into the branch so it's get visibility in the main repo...

@ahayzen-kdab ahayzen-kdab merged commit 77ced1f into ahayzen-kdab:592-multi-crate-project Jan 15, 2024
5 of 6 checks passed
@Be-ing
Copy link
Author

Be-ing commented Jan 15, 2024

Okay. I'm not very inclined to use a Windows VM to figure out what's going on with that weird build error... so... 🤷

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