CMake is not finding a usable cc on my cygwin system, I've tried many things.

Duncan Roe duncan_roe@optusnet.com.au
Mon Jul 21 00:55:22 GMT 2025


On Sun, Jul 20, 2025 at 12:15:12PM -0600, cygwin wrote:
> On 2025-07-19 22:12, Duncan Roe via Cygwin wrote:
> > Bash's `type` builtin would have told you that. `type` also tells you about
> > aliases and functions, unlike `which` which I haven't used for ages.
>
> Bash's which function tells you much more:
>
> $ which which
> which ()
> {
>     ( alias; declare -f ) | command which --tty-only --read-alias \
> 			--read-functions --show-tilde --show-dot "$@"
> }
>
> from which(1) or `info which example`. ;^>
>
Oh that's handy. But `which` can still mislead when a command is hashed:

| 10:40:52$ which v
| /dimstar/home/dunc/bin/v
| 10:44:31$ type -p v
| /dimstar/home/dunc/command_line_tools/bin/v
| 10:44:40$ type v
| v is hashed (/dimstar/home/dunc/command_line_tools/bin/v)

Cheers ... Duncan.


More information about the Cygwin mailing list