SciNim / nimcuda

Nim bindings for CUDA
Apache License 2.0
42 stars 9 forks source link

fix `fileExists` ambiguity for Nim < 1.4 & bump version #13

Closed Vindaar closed 1 year ago

Vindaar commented 2 years ago

Trying to fix #12.

This is a bit confusing to me. According to the docs fileExists lives in os even on devel. But if I prefix the fileExists call with os independent of Nim version, nimble complains about it not existing. Hence the extra proc to differentiate. I hope on older Nim versions this actually works correctly.

Vindaar commented 2 years ago

Friendly ping @andreaferretti.