-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
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 %}j8r, baelter, hanatokitsu, waghanza, chompy-enbala and 1 more
Metadata
Metadata
Assignees
Labels
No labels