Skip to content
Unverified Commit 3288d367 authored by Austin Seipp's avatar Austin Seipp
Browse files

terra: patch to use NIX_CFLAGS_COMPILE for includes



Terra heavily depends on its ability to interface with C APIs, but
without scanning NIX_CFLAGS_COMPILE, it's awkward and annoying to set up
imports correctly (by scanning and adding the flags yourself) in every
single project.

Luckily most of the Clang initialization is hidden away, but the Lua
code for the Terra library handles all the high-level stuff, so we patch
it in there.

This allows simple examples like:

    C = terralib.includec("zlib.h")

to work instantly, provided `zlib` is a Nix dependency.

Signed-off-by: default avatarAustin Seipp <aseipp@pobox.com>
parent 5cc70a7b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment