Re: Could not determine MSC version (Visual Studio 2017)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 25/01/2019 11:48, julien2412 wrote:
Just for curiosity, what's the result for you with the cl commands you
provided me?
I mean I suppose you must have this non break character too and so sed
command should also fail for you, shouldn't it?

I get

Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27024.1 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9002 : ignoring unknown option '-v'
cl : Command line error D8003 : missing source filename

with a true space.

I changed the sed command and runned:
$
C:/PROGRA~2/MIB055~1/2017/COMMUN~1/VC/Tools/MSVC/1416~1.270/bin/HostX64/x64/cl.exe
-v 2>&1 | sed -ne
's|.*\([0-9]\+[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?\).*|\1|p'

I got:
$ 19.16.27026.1

Here's the before/after of sed:
sed -ne 's|.* \([0-9]\+\.[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?\).*|\1|p'
sed -ne
's|.*\([0-9]\+[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?\).*|\1|p'

Does it seem ok to you?

Yeah, that should work, at least as a workaround.
_______________________________________________
LibreOffice mailing list
LibreOffice@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/libreoffice




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux