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

Fix building Tobira on macOS #608

Merged
merged 3 commits into from
Nov 29, 2022

Conversation

owi92
Copy link
Member

@owi92 owi92 commented Nov 29, 2022

This enables building tobira on macOS by not gathering procfs memory info on non-linux systems.
It also fixes the usage: sleep seconds error - apparently, the sleep command doesn't work with quantifiers on macOS.

@owi92 owi92 added the changelog:dev Changes primarily for developers label Nov 29, 2022
Copy link
Member

@LukasKalbertodt LukasKalbertodt left a comment

Choose a reason for hiding this comment

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

Just a tiny thing!

backend/src/metrics.rs Outdated Show resolved Hide resolved
@owi92 owi92 changed the title Config macos build Fix building Tobira on macOS Nov 29, 2022
Apparently, the `--quiet` flag wasn't necessary or doing anything critical.
Gathering memory info seems to be more involved on macOS,
and since it is non-critical, ignoring it is a simple workaround
that allows development on these platforms.
On macOS, the `sleep` command doesn't work with quantifiers like `s`, `m`, `h`,
but always assumes seconds. Therefore we need to omit any quantifiers and convert
larger time quantities accordingly.
Copy link
Member

@LukasKalbertodt LukasKalbertodt left a comment

Choose a reason for hiding this comment

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

Wonderful!

@LukasKalbertodt LukasKalbertodt merged commit a82043c into elan-ev:master Nov 29, 2022
@owi92 owi92 deleted the config-macos-build branch March 4, 2024 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:dev Changes primarily for developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants