futhark icon indicating copy to clipboard operation
futhark copied to clipboard

Why `from os import parentDir`?

Open 29th-Day opened this issue 4 months ago • 1 comments

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"

29th-Day avatar Oct 17 '24 11:10 29th-Day