From 847308c16071d579bf75d60a66f45cad385da8dc Mon Sep 17 00:00:00 2001 From: faumaray Date: Thu, 30 Jul 2026 00:04:29 +0300 Subject: [PATCH] Use configured ABI test compilers --- tests/test_module_abi_c.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_module_abi_c.py b/tests/test_module_abi_c.py index b841567..d885e73 100644 --- a/tests/test_module_abi_c.py +++ b/tests/test_module_abi_c.py @@ -3,6 +3,7 @@ from __future__ import annotations +import os from pathlib import Path import subprocess import tempfile @@ -56,10 +57,10 @@ int main(void) { self.assertEqual(result.returncode, 0, result.stderr) def test_header_is_c11(self) -> None: - self.compile("cc", "c", "-std=c11") + self.compile(os.environ.get("CC", "cc"), "c", "-std=c11") def test_header_is_cpp20(self) -> None: - self.compile("c++", "cpp", "-std=c++20") + self.compile(os.environ.get("CXX", "c++"), "cpp", "-std=c++20") if __name__ == "__main__":