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

Conditionally import Glibc instead of assuming Darwin #23

Closed
jsbean opened this issue Aug 13, 2018 · 0 comments
Closed

Conditionally import Glibc instead of assuming Darwin #23

jsbean opened this issue Aug 13, 2018 · 0 comments

Comments

@jsbean
Copy link
Member

jsbean commented Aug 13, 2018

Currently, there are four instances of importing Darwin:

-Sources/Math/LinearRegression.swift
-Sources/Math/Functions.swift
-Sources/Math/DoubleExtensions.swift
-Sources/Math/Quadratic.swift
-Sources/Math/Scale.swift

These are always for trivial functions like pow(_:_:). In order to serve Linux, conditionally import Glibc.

@jsbean jsbean closed this as completed Aug 13, 2018
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

No branches or pull requests

1 participant