[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CEDET calls cpp -E -dM -x c++ /dev/null
From: |
Eli Zaretskii |
Subject: |
Re: CEDET calls cpp -E -dM -x c++ /dev/null |
Date: |
Thu, 02 Jul 2009 22:29:31 +0300 |
> Date: Thu, 2 Jul 2009 20:13:06 +0200
> From: Lennart Borgman <address@hidden>
> Cc: Eli Zaretskii <address@hidden>, address@hidden, address@hidden
>
> Eric, I looked at your code again and realize that you are using "gcc
> -v" to get info. On w32 it gives "--prefix=/mingw" which lacks the
> drive letter and therefore is useless. I have filed a bug report
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40624
As you already saw in the responses there, the value of --prefix
cannot be helpful when you install precompiled binaries in a different
directory anyway. It is only helpful if your GCC was built on the
same machine it is used. So I think it's futile to pursue this line
of fixing the problem.
> However for now a workaround must be used and I suggest on w32 using
> the information from
>
> (let* ((gcc-exe (locate-file "gcc" exec-path exec-suffixes
> 'executable))
> (gcc-root (expand-file-name ".." (file-name-directory
> gcc-exe)))
>
> I believe gcc-root contains the info that --prefix should have given.
Only if none of the *_INCLUDE_PATH variables is set in the
environment. So I think CEDET needs to inspect those variables first.
- Re: CEDET calls cpp -E -dM -x c++ /dev/null, (continued)
- Re: CEDET calls cpp -E -dM -x c++ /dev/null, Eli Zaretskii, 2009/07/01
- Re: CEDET calls cpp -E -dM -x c++ /dev/null, Lennart Borgman, 2009/07/01
- Re: CEDET calls cpp -E -dM -x c++ /dev/null, Eli Zaretskii, 2009/07/01
- Re: CEDET calls cpp -E -dM -x c++ /dev/null, Eric M. Ludlam, 2009/07/01
- Re: CEDET calls cpp -E -dM -x c++ /dev/null, Lennart Borgman, 2009/07/02
- Re: CEDET calls cpp -E -dM -x c++ /dev/null,
Eli Zaretskii <=
- Re: CEDET calls cpp -E -dM -x c++ /dev/null, Lennart Borgman, 2009/07/02
- Re: CEDET calls cpp -E -dM -x c++ /dev/null, Miles Bader, 2009/07/02
- Re: CEDET calls cpp -E -dM -x c++ /dev/null, Lennart Borgman, 2009/07/02
- Re: CEDET calls cpp -E -dM -x c++ /dev/null, Eli Zaretskii, 2009/07/03
- Re: CEDET calls cpp -E -dM -x c++ /dev/null, Lennart Borgman, 2009/07/03
- Re: CEDET calls cpp -E -dM -x c++ /dev/null, Lennart Borgman, 2009/07/01