Commit graph

42 commits

Author SHA1 Message Date
Kai Nacke
1af1d07cde LLVM 3.9: Add new library globalisel 2016-03-12 15:23:53 +01:00
Kai Nacke
e9b2b46540 FindLLVM: Add new search path for LLVM 3.9 2016-02-20 20:45:45 +01:00
Kai Nacke
1672216cc2 Add gccbuiltins_*.di for more supported targets.
These are: AArch64, ARM, Mips, PowerPC, SystemZ and X86.
2016-02-07 21:17:53 +01:00
Kai Nacke
998510424c cmake: Remove old dependencies from FindLLVM and ...
add support for new component debuginfocodeview.
2016-01-30 00:53:36 +01:00
Dan Olson
0b63c58a8b cmake: Detect if llvm assertions enabled
Set cmake var LLVM_ENABLE_ASSERTIONS based on llvm-config
--assertion-mode.
2016-01-20 22:22:47 -08:00
Kai Nacke
4d906ec336 Add support for LLVM 3.9 in FindLLVM.cmake 2016-01-17 09:55:37 +01:00
Kai Nacke
4d44c3e961 Fix linking with LLVM shared libraries.
Uses llvm-config --libs and special treatment for TableGen library.
2015-10-09 23:03:38 +02:00
Kai Nacke
992fc7b318 Autodetect LLVM 3.8. 2015-10-09 22:58:48 +02:00
Kai Nacke
5bdfce69ec Remove component ipa if building LDC with LLVM 3.8.
This fixes issue #1125.
2015-09-26 18:14:42 +02:00
Kai Nacke
f104af4462 Revert "LLVM 3.7: Add new component mir"
This reverts commit f1c3c3a81f.

The LLVM commit was reverted.
2015-05-23 02:10:15 +02:00
Kai Nacke
f1c3c3a81f LLVM 3.7: Add new component mir 2015-05-22 21:42:41 +02:00
kai
e4b0afb3c2 Add llvm-config-3.7 to list of names 2015-02-17 23:32:18 +01:00
kai
c04537903e LLVM 3.7: Component DebugInfo is now named DebugInfoDWARF.
It's only a change in the build system. This is in preparation for PDB debug info.
2015-02-03 07:11:16 +01:00
Kai Nacke
10be3b836c Fix mingw build script.
LLVM 3.5 requires use of C++11. The gcc compiler requires a flag to use C++11.
The easiest way to pass this flags is to uses the flags returend by llvm-config.
Using llvm-config with mingw requires some path fiddeling because of the mixed
Windows and Unix conventions.
2014-11-04 06:36:39 +01:00
Toby Chen
0840bccfab Work around for LLVM not including AArch64Utils
Similar to LLVM bug 21016, the LLVMAArch64Utils.lib is also missing form
the llvm cmake config script when building on MSVC.
2014-10-12 15:30:55 -04:00
Andreas Hollandt
a2e53feaec fix CMP0054 policy warnings 2014-10-02 14:36:51 +02:00
kai
c27f5a5c9f Work around for LLVM bug 21016.
LLVMX86Utils is missing from target library list for target X86.
Affects only MSVC build.
2014-09-27 02:05:20 +02:00
Kai Nacke
813d514243 Fix deprecation warning 2014-09-21 00:12:34 +02:00
Kai Nacke
76281458db Several changes to CMakeLists.txt and FindLLVM.cmake
- Fix typo in comment
- Removes traces from LLVM 3.0 support
- Fix the regular expression used to match LLVM version
- Add support for LLVM 3.6 config tool
2014-09-21 00:10:59 +02:00
Guillaume Ballet
eb32c672a4 Make sure LLVM_LDFLAGS doesn't contain any new line as this breaks the build 2014-07-28 16:09:28 +02:00
Andreas Hollandt
8af29baeda fix #667 flags list used as string
enable function and data sections
fix incorrect library search paths
2014-07-17 00:11:08 +02:00
kai
829839be4a Merge branch 'master' into merge-2.064 2014-06-04 06:45:12 +02:00
Kai Nacke
0d6c556e50 Add alternative llvm-config names.
FreeBSD/PC-BSD has a different naming scheme for multiple LLVM
installations.
2014-06-04 06:41:04 +02:00
Kai Nacke
8bcfbcf692 Merge pull request #600 from klickverbot/system-libs-3.5
FindLLVM: Pick up system libraries on LLVM 3.5+.
2014-05-10 22:35:36 +02:00
Kai Nacke
535221e16d Add llvm-config-3.5 to search list 2014-01-02 15:57:49 +01:00
Kai Nacke
d4f8092dde Support LLVM 3.5.
LLVM 3.5 adds a new required component lto.
2013-12-13 07:41:22 +01:00
kai
c39a04f038 Do not use llvm-config on Windows.
LLVM 3.4 now also provides a llvm-config tool. The output is
not yet parseable by our cmake module, so just don't use it.
2013-08-24 16:13:38 +02:00
kai
32cf5318a4 Add llvm-config-3.4 to list of llvm-config names.
The LLVM 3.4 development ccycle has started. We should be prepared
for a distribution which starts to use this name.
2013-06-15 16:12:09 +02:00
David Nadlinger
5423a90c25 Search LLVM_ROOT_DIR before system directories. 2013-06-05 17:11:08 +02:00
David Nadlinger
47a1815892 Try llvm-config binaries with version suffix.
This allows us to pick up the newest available version on
several common Debian derivatives.

[Cherry-picked 2b4f49b4e from master.]
2013-06-05 17:11:05 +02:00
David Nadlinger
8bda7ff0c8 MinGW LLVM compiler flag fixes.
Our CMake code should be rewritten to not expect things as strings
that really aren't, but this would entail a whole lot of cross-
platform testing, so I'm postponing it for now.
2013-02-13 16:00:08 +01:00
David Nadlinger
539f7bba82 Also force -fno-rtti on MinGW. 2013-02-13 00:07:51 +01:00
David Nadlinger
3fc9a0faa3 CMake 2.8.0 compatibility. 2012-12-11 23:08:13 +01:00
David Nadlinger
f23d79135f Make sure to include -fno-rtti in LLVM_CXXFLAGS. 2012-12-09 23:16:17 +01:00
David Nadlinger
fc327909a3 Reworded "LLVM not found" message.
Setting LLVM_CONFIG is the way to go on many Linux systems, which
add a version suffix to the LLVM binaries.
2012-12-09 23:15:20 +01:00
kai
9dad0a6b3b Convert output of llvm-config --targets-built to a list. This fixes #148. 2012-08-01 06:47:37 +02:00
kai
e144d8d4ad In FindLLVM.cmake metachars must be escaped before embedding paths into regex. 2012-07-29 19:18:48 +02:00
kai
2addbd2b71 More changes to the build system.
- Relax version checking because we intend to have only a single branch
- Exclude ldfpu.asm from build with MSVC-32 (reported by huynh van sen)
- Fix FindLLVM.cmake to work on Windows again
2012-07-28 22:41:34 +02:00
kai
508dd9ff70 Simplify CMakeLists.txt.
This version works with LLVM 3.0 and 3.1.
2012-07-24 23:33:15 +02:00
kai
93b2334803 Add more MSVC stuff to CMake files. 2012-06-15 12:20:02 +02:00
kai
3eef7b7d55 First attempt to create build files for MSVC. 2012-06-13 18:23:39 +02:00
David Nadlinger
bafe9c8e03 Factored out LLVM detection into separate CMake module. 2011-11-12 17:48:28 +01:00