Commit Graph

3 Commits

Author SHA1 Message Date
J. Neto
6cf3ec0947
terra: 1.0.0pre1175_ef6a75f -> 1.0.0-beta3
Contains the combined single-commit work by both @jnetod and myself
from NixOS/nixpkgs#122665. Brings the build up to LLVM 10, switches to
`symlinkJoin` for putting Clang where the CMake build expects it, and
updates to a fresh update of Terra that works around a few LLVM bugs.
2021-06-05 18:19:23 -07:00
Austin Seipp
d5e1d57cee
terra: include libc headers by default, run tests
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-09-19 00:26:48 -05:00
Austin Seipp
3288d3670f
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: Austin Seipp <aseipp@pobox.com>
2019-09-18 21:45:34 -05:00