futhark
futhark copied to clipboard
Why `from os import parentDir`?
I'm trying to create a wrapper for a library on an embedded device and I use the --os:any
flag when compiling my code. Therefore, the os
module is not available but from is import parentDir
is present in every wrapper file but never used. Why is this present and is there an automatic way of avoiding it?
My nim file for creating the wrapper looks like this
import os, futhark
importc:
outputPath currentSourcePath.parentDir / "lib"
path "/path/to/lib/include/"
"header.h"