Граф коммитов

15 Коммитов

Автор SHA1 Сообщение Дата
Ehsan Akhgari 9dc77f0f7a Bug 1032528 - Use C{,PP,XX}FLAGS when determining the compiler version in case it can be affected by what is there; r=glandium
This for example allows us to use -fmsc-version in CFLAGS/CXXFLAGS
with clang-cl.
2014-07-04 10:43:08 -04:00
Ehsan Akhgari 201c425d11 Backed out changeset 523ef80786ad (bug 1032528) because of build failure on a CLOSED TREE 2014-07-04 11:10:22 -04:00
Ehsan Akhgari 2843fe358e Bug 1032528 - Use CFLAGS when determining the compiler version in case it can be affected by what is there; r=glandium
This for example allows us to use -fmsc-version in CFLAGS/CXXFLAGS
with clang-cl.
2014-07-04 10:43:08 -04:00
Ehsan Akhgari d9c7b7c290 Bug 1021378 follow-up: take up my debugging stuff, and typos 2014-06-09 10:59:36 -04:00
Ehsan Akhgari fde35aa8b8 Bug 1021378 - Add support for clang-cl to the build system; r=glandium
This patch does two things: 1. Treat clang on Windows explicitly as MSVC. There
are some places in our build system where we try to detect clang by looking at
the output of $(CC) -v, and that will cause us to believe that we are using
clang, which is not helpful.  This patch defines the CLANG_CL variable when it
detects clang being used on Windows.  It also masquarades clang-cl as MSVC
2012, which is how the compiler introduces itself through the _MSC_VER
predefined variable.

2. Disable a bunch of things which currently are not supported on clang-cl.  As
we proceed with this port, hopefully we'll be able to remove everything in this
list, but this will get us closer to be able to build with clang-cl.

With this patch and clang-cl trunk, we can get past the configure stage of the
build.

--HG--
extra : rebase_source : e5b8d77e4571c936820cec858953d58b6f31e0d5
2014-06-07 10:27:43 -04:00
Mike Hommey 80e79be833 Bug 462427 - Stop requiring CROSS_COMPILE being set. r=ted 2014-02-11 10:37:46 +09:00
Mike Hommey af74b24a1d Bug 901149 - Add the clang workaround for __float128 to HOST_CXXFLAGS when not cross-compiling. r=ted 2013-08-06 10:08:23 +09:00
Mike Hommey 0878bced42 Bug 900775 - Add -std=gnu++0x to HOST_CXXFLAGS when not cross-compiling. r=gps 2013-08-02 10:29:38 +09:00
Mike Hommey 32495789b5 Bug 895915 - Enforce host gcc/clang support for C++11. r=gps 2013-07-30 08:57:28 +09:00
Ehsan Akhgari 26880a184c Bug 882766 - Recognize clang even when it doesn't #define __GNUC__; r=ted
Clang on Windows #defines _MSC_VER but not __GNUC__, so we need to make sure
that the build system can recognize it even when __GNUC__ is not defined.
2013-06-13 13:03:13 -04:00
Landry Breuil 5f2a0e8a19 Bug 842131 - Use egrep to detect clang version, fixes build without GNU grep. r=glandium 2013-02-18 10:42:22 +01:00
Felix S. Klock II 9283a8f0e6 Bug 840512 - Generalize toolchain.m4 to match newer Apple clang version string. r=glandium 2013-02-13 11:24:09 +01:00
Mike Hommey 4d1a776995 Bug 836161 - Fix gcc version test from bug 833627 to be properly quoted by m4. r=ted 2013-01-31 10:32:18 +01:00
Mike Hommey a286285ba4 Bug 833627 - Reject gcc < 4.4, and remove a few unused Xcode related variables. r=ted 2013-01-23 10:13:02 +01:00
Rafael Ávila de Espíndola acf9bca19f Bug 755145 - Define CCACHE_CPP2 when using ccache and Clang. r=glandium. 2012-07-19 09:20:46 -04:00