This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Clang and windows headers
- From: Yaakov (Cygwin/X) <yselkowitz at users dot sourceforge dot net>
- To: cygwin at cygwin dot com
- Date: Thu, 10 Jan 2013 21:56:25 -0600
- Subject: Re: Clang and windows headers
- References: <50EEEA49.1050507@alice.it>
On Thu, 10 Jan 2013 17:20:25 +0100, Angelo Graziosi wrote:
> Trying to compile a C++ source file including windows.h header with
> clang++, fails with
>
> #error Must define a target architecture
Thanks for the report. Clang defines _X86_ only for MinGW targets, not
taking into account that we also need to work with w32api headers. I
would say that its fortunate that this should be easy to patch, until...
> Indeed now ROOT uses clang tools to build (GCC is used to bootstrap
> ROOT's patched version of CLANG...). Nevertheless the same errors occurs
> using Cygwin's CLANG as the above simple test case shows...
You have *got* to be kidding me. Forking an entire compiler within a
source package just for building that package? I'll admit I didn't see
that coming.
Anyways, I'll fix this shortly.
Yaakov
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple