Fix: Pass C toolchain environments in tox.ini
authorOlivier Dion <odion@efficios.com>
Fri, 10 Mar 2023 17:30:22 +0000 (12:30 -0500)
committerOlivier Dion <odion@efficios.com>
Tue, 14 Mar 2023 15:09:45 +0000 (11:09 -0400)
CC is important if `cc' is not in PATH.

C_INCLUDE_PATH is important for the compiler to find the good headers,
e.g. <linux/limits.h>.

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 <odion@efficios.com>
tox.ini

diff --git a/tox.ini b/tox.ini
index beab0c6c7824765adee9d49574d2ed08f2f178fc..68883ec51f5b6ba794b80fe93054f804f03f3bc5 100644 (file)
--- 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
 
This page took 0.024448 seconds and 4 git commands to generate.