From: "Marvin Scholz" <epirat07@gmail.com> To: "FFmpeg development discussions and patches" <ffmpeg-devel@ffmpeg.org> Subject: Re: [FFmpeg-devel] [PATCH] configure: Fix Microsoft tools detection Date: Thu, 03 Feb 2022 13:08:41 +0100 Message-ID: <4521E4AF-5E7C-4219-BF49-13062AB3523E@gmail.com> (raw) In-Reply-To: <CA+anqdwrmB-9-X0zzCh4KxYovGFkyTV9DBxT7Cx_z7=cfoRCRg@mail.gmail.com> On 3 Feb 2022, at 12:55, Hendrik Leppkes wrote: > On Thu, Feb 3, 2022 at 12:34 PM Martin Storsjö <martin@martin.st> > wrote: >> >> On Thu, 3 Feb 2022, Kacper Michajlow wrote: >> >>> On Wed, 26 Jan 2022 at 15:00, Martin Storsjö <martin@martin.st> >>> wrote: >>>> >>>> Hi, >>>> >>>> On Sat, 22 Jan 2022, Kacper Michajłow wrote: >>>> >>>>> LLVM tools print installation path upon execution. If one uses >>>>> LLVM >>>>> tools bundled with Microsoft Visual Studio installation, they >>>>> would be >>>>> incorrectly detected as Microsoft's ones. >>>>> >>>>> Signed-off-by: Kacper Michajłow <kasper93@gmail.com> >>>>> --- >>>>> configure | 6 +++--- >>>>> 1 file changed, 3 insertions(+), 3 deletions(-) >>>> >>>> While the patch description seems to make sense, I wanted to try it >>>> out to >>>> see the practical effect for myself, and I fail to observe any >>>> difference. >>>> >>>> Can you provide your exact configure command line you use, where it >>>> makes >>>> a difference? I tried with "--cc=clang-cl --ld=lld-link >>>> --toolchain=msvc" >>>> and that works just as fine before this patch. >>>> >>>> In particular, the commands that you adjust run "$_cc -nologo-" and >>>> grep >>>> for "Microsoft" in the output of that. When I run that with >>>> clang-cl, it >>>> doesn't print a string containing "Microsoft". >>>> >>>> // Martin >>> >>> Hi, >>> >>> Yes you are right. In case of CC it doesn't change anything. >>> clang-cl >>> prints installation dir only with `-v`. The main thing this patch >>> fixes is `--ar=llvm-ar` where it is mistaken for lib.exe and used >>> with >>> wrong parameters. While fixing this I figured to make CC check also >>> more strict, because at some point it could be a problem. Sync all >>> of >>> them to have same style as one that was already there >> >> Oh, ok, with the reference to llvm-ar, I see what it fixes. Thanks! >> The >> reference to llvm-ar absolutely needs to be in the patch description >> then. >> >> I remember that there has been some variance throughout the versions >> for >> exactly what MSVC prints as the identification thoughout the >> versions, but >> I think 'Microsoft.*Optimizing.*Compiler' should be safe. >> > > I was wondering if non-english locale would translate that string, but > I can't easily test that, I don't think. > Just tested this and it does not seem to be translated for me, at least in the x86 Native Tools Command Prompt. > - Hendrik > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2022-02-03 12:08 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-01-22 20:13 Kacper Michajłow 2022-01-26 14:00 ` Martin Storsjö 2022-02-03 6:44 ` Kacper Michajlow 2022-02-03 11:34 ` Martin Storsjö 2022-02-03 11:55 ` Hendrik Leppkes 2022-02-03 12:08 ` Marvin Scholz [this message] 2022-02-03 12:26 ` Marvin Scholz 2022-02-03 12:33 ` Martin Storsjö 2022-02-03 12:43 ` Marvin Scholz 2022-02-03 12:47 ` Martin Storsjö 2022-02-03 16:02 ` Marvin Scholz 2022-02-07 21:00 ` Martin Storsjö
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=4521E4AF-5E7C-4219-BF49-13062AB3523E@gmail.com \ --to=epirat07@gmail.com \ --cc=ffmpeg-devel@ffmpeg.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: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git