Skip to content

[vcpkg-bootstrap.sh] Enable finding gcc 9#6417

Merged
ras0219-msft merged 1 commit intomicrosoft:masterfrom
ras0219-msft:dev/roschuma/gcc9
May 13, 2019
Merged

[vcpkg-bootstrap.sh] Enable finding gcc 9#6417
ras0219-msft merged 1 commit intomicrosoft:masterfrom
ras0219-msft:dev/roschuma/gcc9

Conversation

@ras0219-msft
Copy link
Contributor

Should fix #6411 @acgetchell

@MVoz
Copy link
Contributor

MVoz commented May 13, 2019

why produce versions? in * unix it is easier to configure

example

sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 30
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 50
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 60
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 80

sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30

sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60

did not watch, there MacOS, is not familiar with this OS

@acgetchell
Copy link

In an environment like Travis-CI with sudo: false then sudo update-alternatives doesn't work.

@MVoz
Copy link
Contributor

MVoz commented May 13, 2019

in * UNIX, the sudo command is administrative privileges

update-alternatives
https://wiki.debian.org/DebianAlternatives

@ras0219-msft ras0219-msft merged commit 8a6c7f3 into microsoft:master May 13, 2019
@ras0219-msft
Copy link
Contributor Author

I'm not able to think of a good way to use "*" in this case -- if you have a more concrete idea I'd be happy to see a PR!

@MVoz
Copy link
Contributor

MVoz commented May 13, 2019

It seems to me that the user should do this on his own machine, just like installing MSVC
once in settings

and here to register in the DOC how to configure

But that's my personal opinion ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

./vcpkg broken on macOS 10.14.4

3 participants