From 2e626ead53f56c5dc958c4406af0661da218b013 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Tue, 14 May 2024 15:31:19 +0200 Subject: [PATCH] Check for valid c++ compiler in docker, if needed --- alibuild_helpers/doctor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/alibuild_helpers/doctor.py b/alibuild_helpers/doctor.py index 77f32521..46fd7da6 100644 --- a/alibuild_helpers/doctor.py +++ b/alibuild_helpers/doctor.py @@ -80,7 +80,8 @@ def doDoctor(args, parser): # Decide if we can use homebrew. If not, we replace it with "true" so # that we do not get spurious messages on linux homebrew_replacement = "" - err, output = getstatusoutput("type c++") + with DockerRunner(args.dockerImage, args.docker_extra_args) as getstatusoutput_docker: + err, output = getstatusoutput_docker("type c++") if err: warning("Unable to find system compiler.\n" "%s\n"