Skip to content

Instantly share code, notes, and snippets.

@zacharycarter

zacharycarter/volk.nim Secret

Created Aug 1, 2020
Embed
What would you like to do?
import os,
nimterop/cimport
static:
cDebug()
cPlugin:
import strutils
proc onSymbol(sym: var Symbol) {.exportc, dynlib.} =
sym.name = sym.name.strip(chars = {'_'})
{.passC: "-DVK_USE_PLATFORM_MACOS_MVK".}
{.passC: "-DVOLK_IMPLEMENTATION".}
cIncludeDir(currentSourcePath.parentDir()/"volk")
cCompile(currentSourcePath.parentDir()/"volk/volk.c")
cImport(currentSourcePath.parentDir()/"volk/volk.h")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.