From: Olivier Dion Date: Fri, 10 Mar 2023 17:30:22 +0000 (-0500) Subject: Fix: Pass C toolchain environments in tox.ini X-Git-Url: https://git.efficios.com/?a=commitdiff_plain;h=23b946a9df33d8e1858eb4045d186b7b7afba718;p=barectf.git Fix: Pass C toolchain environments in tox.ini CC is important if `cc' is not in PATH. C_INCLUDE_PATH is important for the compiler to find the good headers, e.g. . LIBRARY_PATH is important for the compiler to link against good libraries, e.g. `crt1.o'. This is mandatory for distributions that does not install headers/libraries in standard locations that can be deduce by the compiler, e.g. on Guix and NIX systems. Note that this is intended for the C toolchain and not tests them self. See https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html. Change-Id: I35dca0a929b6ba00ba9fe7381a5d5bddce901da1 Signed-off-by: Olivier Dion --- diff --git a/tox.ini b/tox.ini index beab0c6..68883ec 100644 --- a/tox.ini +++ b/tox.ini @@ -7,6 +7,9 @@ skipsdist = True [testenv] allowlist_externals = poetry passenv = + CC + C_INCLUDE_PATH + LIBRARY_PATH TERM TERMINFO