Skip to content

Third-party library with no macOS platform #212

Answered by aabewhite
johnrbent asked this question in Q&A

You must be logged in to vote

The transpiler's analysis of compiler directives is unfortunately pretty dumb. Basically it treats SKIP as true, and pretty much everything else as false. So I use a pattern like:

#if os(macOS) // Skip sees this as false
#else // so Skip sees this as true
...
#endif

Or combinations like:

#if SKIP || !os(macOS)
...
#endif

Replies: 2 comments 12 replies

You must be logged in to vote
2 replies
@johnrbent

@aabewhite

Answer selected by johnrbent

You must be logged in to vote
10 replies
@papel375

@marcprux

@johnrbent

@johnrbent

@papel375

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants