Skip to content

Add support for Mac #6

@bararchy

Description

@bararchy

Right now the shard was tested, built and ran only on Linux, but we should let the Mac guys in on the fun :)

Suggested way to do it is by having compile time OS specific code wrapped so that the program can be used in different operating systems.

For example (from crystal repo)

{% if flag?(:freebsd) || flag?(:openbsd) %}
  require "./system/unix/sysctl_cpucount"
{% elsif flag?(:unix) %}
  require "./system/unix/sysconf_cpucount"
{% end %}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions