gcc 7.1.1 on Fedora 26 dumpversion now only includes major version by default

后端 未结 2 1063
情深已故
情深已故 2020-12-16 18:43

After upgrading from Fedora 25 to 26 the default gcc version is now version 7.1.1 and the output of gcc -dumpversion has changed from major.minor.patch to just

2条回答
  •  时光说笑
    2020-12-16 19:19

    I used both options together:

    gcc -dumpfullversion -dumpversion
    

    This seems to work on old and new in a uniform way:

    [root@zeta ~]# gcc -dumpfullversion -dumpversion
    

    4.4.7

    [jenkins@build-el7 ~]$ gcc -dumpfullversion -dumpversion
    

    7.2.1

提交回复
热议问题