public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-6656] Update check_effective_target_recent_python3 Date: Tue, 18 Jan 2022 08:18:42 +0000 (GMT) [thread overview] Message-ID: <20220118081842.0681F3857C52@sourceware.org> (raw) https://gcc.gnu.org/g:50c3975129c5d97387bbe4976bea1931d3fad0b2 commit r12-6656-g50c3975129c5d97387bbe4976bea1931d3fad0b2 Author: Martin Liska <mliska@suse.cz> Date: Tue Jan 18 09:16:26 2022 +0100 Update check_effective_target_recent_python3 Require at least Python 3.6. gcc/testsuite/ChangeLog: * gcc.src/maintainers.exp: Use the new check_effective_target_recent_python3. * lib/target-supports.exp: Check for Python3 version >= 3.6. Diff: --- gcc/testsuite/gcc.src/maintainers.exp | 4 ++-- gcc/testsuite/lib/target-supports.exp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/testsuite/gcc.src/maintainers.exp b/gcc/testsuite/gcc.src/maintainers.exp index 63361dd5e4b..a4b3986be77 100644 --- a/gcc/testsuite/gcc.src/maintainers.exp +++ b/gcc/testsuite/gcc.src/maintainers.exp @@ -24,8 +24,8 @@ proc gcc_src_run_maintainers_verify_sh {} { set contrib $rootdir/contrib set maintainers $rootdir/MAINTAINERS - if { ![check_effective_target_python3] } { - unsupported "$script python3 is missing" + if { ![check_effective_target_recent_python3] } { + unsupported "$script recent python3 is missing" return } diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index fd48475a57c..fbb6c735223 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -11723,10 +11723,10 @@ proc check_effective_target___OPTIMIZE__ {} { } [current_compiler_flags]] } -# Return 1 if python3 is available. +# Return 1 if python3 (>= 3.6) is available. -proc check_effective_target_python3 { } { - set result [remote_exec host "python3 --version"] +proc check_effective_target_recent_python3 { } { + set result [remote_exec host "python3 -c \"import sys; assert sys.version_info >= (3, 6)\""] set status [lindex $result 0] if { $status == 0 } then { return 1;
reply other threads:[~2022-01-18 8:18 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220118081842.0681F3857C52@sourceware.org \ --to=marxin@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).