Switch 'gcc' in Cygwin to point to another toolchain. https://code.ivysaur.me/cygwin-toolchain-switcher
This repository has been archived on 2020-05-03. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
mappu d148922d7f commit all archived files 2016-08-25 09:08:25 +00:00
dist-archive commit all archived files 2016-08-25 09:08:25 +00:00
.legacy-codesite.toml initial meta commit 2016-08-25 09:08:25 +00:00
README.md commit all archived files 2016-08-25 09:08:25 +00:00

README.md

cygwin-toolchain-switcher

Switch 'gcc' in Cygwin to point to another toolchain.

This script configures symlinks in $PATH so that invoking e.g. gcc or ld will point to a specific toolchain instead of the native one.

Usage

Running cygwin-toolchain-switcher.sh will create and set up toolchain switching scripts. Once the script has run, you can switch toolchains at any time by typing:

. ~/.cygwin-toolchain-switcher/use-toolchain-x86_64-mingw-w64

There are scripts installed for each detected toolchain.

Notes

If you want to have gcc invocations work all the way through Cygwin -> Windows -> Cygwin roundtrips (e.g. using cygwin git with windows go get with cygwin x86_64-mingw-w64-gcc to make CGO work) then the created symlinks must be Windows symlinks instead of Cygwin symlinks. To do so, launch Cygwin as Administrator and export CYGWIN="winsymlinks:nativestrict" before invoking the script.

Download