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

Use CARGO_CFG_TARGET_OS instead of target_os cfg var #93

Merged

Conversation

lu-zero
Copy link
Contributor

@lu-zero lu-zero commented Jan 3, 2024

target_os reports the target used to build the build.rs script, while it is needed to check which is the target used to build the crate itself.

Partially unbreaks cross-building, it covers only macos to linux.

target_os reports the target used to build the build.rs script, while
it is needed to check which is the target used to build the crate
itself.

Partially unbreaks building for linux on a macos host.
Copy link

semanticdiff-com bot commented Jan 3, 2024

Review changes with SemanticDiff.

Analyzed 1 of 1 files.

Overall, the semantic diff is 43% smaller than the GitHub diff.

Filename Status
✔️ hwlocality-sys/build.rs 42.42% smaller

@HadrienG2 HadrienG2 merged commit abffac3 into HadrienG2:master Jan 3, 2024
92 checks passed
Copy link

codecov bot commented Jan 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f6e9a92) 65.28% compared to head (31b1329) 66.53%.
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #93      +/-   ##
==========================================
+ Coverage   65.28%   66.53%   +1.25%     
==========================================
  Files          43       42       -1     
  Lines        4632     4076     -556     
==========================================
- Hits         3024     2712     -312     
+ Misses       1608     1364     -244     
Flag Coverage Δ
ubuntu-latest 66.53% <ø> (ø)
windows-latest ?

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@HadrienG2
Copy link
Owner

Thanks for the fix!

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