-
-
Save zacharycarter/adfb3940a3b8357655671ffe9626bbbb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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