From 149e448a6479ec8dd106d1eb4ef4889120a2a1e4 Mon Sep 17 00:00:00 2001 From: "Matthew R. Becker" Date: Mon, 25 Nov 2024 08:46:27 -0600 Subject: [PATCH] debug: try using CXX env var --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index fe2398d8..3031cd67 100644 --- a/setup.py +++ b/setup.py @@ -379,7 +379,7 @@ def try_cc(cc, cc_type): # http://bugs.python.org/issue9031 # http://bugs.python.org/issue1222585 # So just switch it manually and see if that works. - cmd = ['c++'] + lopt[cc_type] + [o_file.name,'-o',exe_file.name] + cmd = [os.environ.get('CXX', 'c++')] + lopt[cc_type] + [o_file.name,'-o',exe_file.name] p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) lines = p.stdout.readlines() p.communicate()