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

CI test: Try fixing Ninja MC in the default case #42

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Conversation

jschwe
Copy link
Owner

@jschwe jschwe commented Mar 5, 2024

Probably this is not a full fix yet.

@jschwe jschwe changed the title CI test: üpTry fixing Ninja MC in the default case CI test: Try fixing Ninja MC in the default case Mar 5, 2024
@jschwe jschwe force-pushed the ninja_mc branch 5 times, most recently from 498050c to 0828966 Compare March 6, 2024 18:03
The OpenHarmony SDK contains a CMake toolchain file,
which among others sets CMAKE_OHOS_ARCH_ABI.
We can use this to automatically infer the correct Rust target.

The SDK can be obtained from the release notes on gitee:
https://gitee.com/openharmony/docs/tree/master/en/release-notes
macos-latest now maps to macos-14, which is an M1 mac.
Adjust the aarch64 file to not enable CMake cross-compiling mode,
and add a toolchain file for x86_64 apple.
The default output directory was the same for all `$<CONFIG>`s,
which caused conflicting build rules.
The issue probably still exists for the rare case when:
1. The user specified an `OUTPUT_DIRECTORY` property AND
2. did not specify an `OUTPUT_DIRECTORY_$<CONFIG>` property AND
3. The value of the `OUTPUT_DIRECTORY` does not contain a genex,
  depending on the `$<CONFIG>`.

Corrosion could detect and append a `$<CONFIG>` in this case, but
I think leaving this up to the user is reasonable for now.
Add a test with CMAKE_CROSS_CONFIGS set
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