Skip to content

Commit

Permalink
Tiny fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
PMunch committed Jan 7, 2023
1 parent 2fc3992 commit 2f14f80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/futhark.nim
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,9 @@ macro importc*(imports: varargs[untyped]): untyped =
cargs.add superQuote do: "-I" & absolutePath(`path`, getProjectPath())
sysPathDefined = true
if not sysPathDefined:
cargs.add superQuote do: "-I" & getClangIncludePath()
let clangIncludePath = getClangIncludePath()
if clangIncludePath != "":
cargs.add newLit("-I" & clangIncludePath)
result.add quote do: importcImpl(`defs`, `cargs`, `files`, `importDirs`, `renames`, `retypes`, RenameCallback(`renameCallback`))

macro importcImpl*(defs: static[string], compilerArguments, files: static[openArray[string]], importDirs: static[openArray[string]], renames, retypes: static[openArray[FromTo]], renameCallback: static[RenameCallback]): untyped =
Expand Down
File renamed without changes.

0 comments on commit 2f14f80

Please sign in to comment.