Tobias Grosser
b32ad40188
cmake: Pass the -m32 flag to modules if LLVM_BUILD_32_BITS is enabled
...
This was previously only done for executables and shared libraries, but not
for modules. As modules are essentially shared libraries (that need to be
dlopened explicitly), threating them the same as shared libraries seems
reasonable. This fixes the LLVM_BUILD_32_BITS build of Polly.
Contributed by: Ondra Hosek <ondra.hosek@gmail.com>
llvm-svn: 158195
2012-06-08 09:41:23 +00:00
Michael J. Spencer
aeb59e1d0d
[CMake] Promote extension warnings to errors.
...
llvm-svn: 158176
2012-06-07 23:33:56 +00:00
Michael J. Spencer
08180c325f
[CMake] Order MSVC warnings numerically.
...
llvm-svn: 158171
2012-06-07 21:34:31 +00:00
Michael J. Spencer
6d45d834a7
[CMake] Adjust MSVC warnings.
...
Remove /Wall from LLVM_ENABLE_WARNINGS (it's useless) and promote 4239
to a level 1 warning.
llvm-svn: 158170
2012-06-07 21:34:15 +00:00
Tim Northover
f6e29c4771
Fix how CMake appends -m32 to linker command-lines
...
llvm-svn: 157337
2012-05-23 18:42:02 +00:00
Rafael Espindola
ac57583236
Adding -fcolor-diagnostics is causing problem to users that parse the build
...
output. Peter Collingbourne also reports that it is showing up in
$(llvm-config --cflags).
Revert this for now since I don't know enough cmake to fix it properly.
This reverts commit 18efed7adc79c1970f307bb5b015d199012ba872.
llvm-svn: 156392
2012-05-08 18:11:06 +00:00
Rafael Espindola
1abcf64283
Pass -fcolor-diagnostics when it is supported. This makes a difference when
...
using cmake+ninja, since ninja buffers the compiler output.
llvm-svn: 156150
2012-05-04 03:23:36 +00:00
NAKAMURA Takumi
75bfe69282
CMake: Enable LLVM_COMPILER_JOBS on all MS IDEs. We don't support older environments than VS9.
...
llvm-svn: 155285
2012-04-21 14:51:02 +00:00
NAKAMURA Takumi
a83601d637
CMake: Prune redundant LLVM_COMPILER_JOBS from llvm/CMakeLists.txt. HandleLLVMOptions.cmake has it.
...
llvm-svn: 155284
2012-04-21 14:50:56 +00:00
Michael J. Spencer
35145f830a
Minimal changes for LLVM to compile under VS11.
...
llvm-svn: 151849
2012-03-01 22:42:52 +00:00
Rafael Espindola
42e94d11a1
Enable -Wcovered-switch-default again, but add -Werror to the checks to make
...
sure we don't use it with compilers that don't support it.
llvm-svn: 151665
2012-02-28 23:32:06 +00:00
Chandler Carruth
0bd3913d96
Temporarily revert r151609, which enabled a new warning for LLVM and
...
Clang builds. The detection logic for compilers that support the warning
isn't working. Rafael is going to investigate it, but didn't want people
to have to wade through build spam until then.
llvm-svn: 151649
2012-02-28 19:26:56 +00:00
Rafael Espindola
334eaeae8e
Enable -Wcovered-switch-default as it matches the switch style used in llvm.
...
llvm-svn: 151609
2012-02-28 02:01:55 +00:00
Rafael Espindola
f47efbc07d
-fvisibility-inlines-hidden is a c++ only option.
...
Thanks to Peter Collingbourne for noticing it.
llvm-svn: 148913
2012-01-25 03:39:26 +00:00
Rafael Espindola
9f404cc421
Don't use -fvisibility-inlines-hidden on mingw to try to avoid a lot of
...
warnings from gcc.
llvm-svn: 148539
2012-01-20 13:10:10 +00:00
Rafael Espindola
5258ab885b
cmake: pass -fvisibility-inlines-hidden if it is supported. In a
...
Release+Asserts build with -DBUILD_SHARED_LIBS=ON, the install
directory goes from 72MB to 70MB.
llvm-svn: 148530
2012-01-20 04:07:48 +00:00
NAKAMURA Takumi
1b745d0086
Tweak CMake build on Cygwin.
...
llvm-svn: 146725
2011-12-16 06:21:08 +00:00
Daniel Dunbar
10fa2df7c5
build/cmake: Move all the user controllable options into top-level CMakeLists
...
for consistency.
llvm-svn: 143728
2011-11-04 19:04:35 +00:00
NAKAMURA Takumi
c5554c9de3
Add -D__STDC_FORMAT_MACROS to use PRIx64.
...
llvm-svn: 141663
2011-10-11 12:51:44 +00:00
NAKAMURA Takumi
e63cd198ba
cmake/modules/HandleLLVMOptions.cmake: Reorder __STDC_CONSTANT_MACROS and __STDC_LIMIT_MACROS.
...
llvm-svn: 141662
2011-10-11 12:51:36 +00:00
NAKAMURA Takumi
b3457c9eef
CMake: [MSVC] Suppress C4551 'function call missing argument list'.
...
(void)static_func; it is used as idiom in llvm source tree to suppress "Unused static function" warnings.
llvm-svn: 137800
2011-08-17 01:28:30 +00:00
Andrew Trick
67ff0718a4
lit support for REQUIRES: asserts.
...
Take #2 . Don't piggyback on the existing config.build_mode. Instead,
define a new lit feature for each build feature we need (currently
just "asserts"). Teach both autoconf'd and cmake'd Makefiles to define
this feature within test/lit.site.cfg. This doesn't require any lit
harness changes and should be more robust across build systems.
llvm-svn: 133664
2011-06-22 23:23:19 +00:00
Andrew Trick
48904e0cb7
Added LLVM_BUILD_MODE to cmake so that lit supports tests with REQUIRES: {buildmode}.
...
llvm-svn: 133205
2011-06-16 22:19:20 +00:00
Oscar Fuentes
ab84a7bf73
Handle gcc-compatible compilers (such as clang) the same way we handle
...
gcc.
Fixes PR9886.
llvm-svn: 131181
2011-05-11 13:53:08 +00:00
Francois Pichet
939efc5b0d
Disable warning C4181: "qualifier applied to reference type; ignored"
...
This was causing a flooding of warnings with MSVC 2008. This warning was removed in MSVC 2010.
llvm-svn: 129737
2011-04-19 00:03:17 +00:00
Oscar Fuentes
cde00a55c8
Fix assignment of -fPIC to CMAKE_C_FLAGS. Configure llvm-config.in.in
...
with the contents of CMAKE_C(XX)_FLAGS too, else `llvm-config
--c(xx)flags' doesn't tell the absolute truth.
This comes from PR9603 and is based on a patch by Ryuta Suzuki!
llvm-svn: 128727
2011-04-01 19:36:06 +00:00
Oscar Fuentes
a693632dfd
Remove remnant of my experimentation with CMake.
...
llvm-svn: 127244
2011-03-08 13:30:52 +00:00
Oscar Fuentes
318c3f1717
Support for parallel compilation (/MP) when using the VS IDE.
...
Patch by Erik Olofsson!
llvm-svn: 126847
2011-03-02 17:47:37 +00:00
NAKAMURA Takumi
66242b85f0
CMake: Define LLVM_INCLUDE_TESTS in cmake/modules/HandleLLVMOptions.cmake. It affects testing stuff on clang-standalone build.
...
llvm-svn: 126107
2011-02-21 03:21:06 +00:00
NAKAMURA Takumi
860dc41218
CMake: LLVM_LIT_TOOLS_DIR is needed only on Win32 hosts to use GnuWin32 tools.
...
Unixen and Cygwin do not need it.
llvm-svn: 125277
2011-02-10 10:29:42 +00:00
NAKAMURA Takumi
5b4c155112
CMake: Add the new option LLVM_LIT_TOOLS_DIR. It can specify "Path to GnuWin32 tools".
...
llvm-svn: 125173
2011-02-09 04:18:58 +00:00
Oscar Fuentes
7dc9dce770
Don't define NDEBUG on MSVC_IDE and XCode builds. Fixes PR9155.
...
llvm-svn: 124985
2011-02-06 19:07:06 +00:00
Oscar Fuentes
3522179e36
Moved more stuff to HandleLLVMOptions.cmake
...
llvm-svn: 124968
2011-02-05 19:08:42 +00:00
Oscar Fuentes
f4202ba475
Changes for building Clang and others using LLVM as an external
...
library.
Installs tblgen (required by Clang).
Translates handling of user settings and platform-dependant options to
its own file, where it can included by another project.
Installs the .cmake files required by projects like Clang.
llvm-svn: 124816
2011-02-03 20:57:36 +00:00