Commit graph

25 commits

Author SHA1 Message Date
David Nadlinger
9df487edff gen/ir: clang-tidy the world 2015-11-02 11:30:40 +02:00
David Nadlinger
44b0f7b615 driver/gen/ir: clang-format the world
This uses the LLVM style, which makes sense for sharing code
with other LLVM projects. The DMD code we use will soon all
be in D anyway.
2015-11-02 00:28:01 +02:00
Martin
60d676e2a1 Drop support for LLVM < 3.5
This allows to clean up the code a little.
2015-10-30 22:24:05 +01:00
Martin
43ff4373d6 Don't try to find a program via environment variable if that is empty (CC)
Whereas most OSs seem to remove the environment variable if it's cleared,
OSX seems to keep it, explicitly cleared so to speak.

I strongly suspect a cleared CC env variable to be the reason for the
triggering assertion when trying to build dmd-testsuite's d_do_test tool
in our OSX CI builds.
2015-10-18 20:10:24 +02:00
Kai Nacke
9127910459 Fix compile error on FreeBSD. 2015-10-09 23:27:54 +02:00
Martin
1670323ebb Refactor argv[0] management, related path searches etc. 2015-09-27 20:47:14 +02:00
Martin
93300cd331 MSVC: use a single batch file helper, for the linker only 2015-09-27 17:11:36 +02:00
Kai Nacke
0ab82654cf Use clang as default compiler driver on FreeBSD 10 or later.
On FreeBSD 10 clang is the default compiler. gcc is not installed
by default. This PR changes the used compiler driver for linking
to clang.
2015-09-24 22:54:47 +02:00
kai
30bdf7f2e4 LLVM 3.6: Fix wrong logic for new FindProgramByName. 2014-11-06 21:18:41 +01:00
kai
6e72ecbc4f LLVM 3.6: Name and signature of FindProrammByName changed. 2014-11-06 07:54:45 +01:00
Kai Nacke
fe39da53e3 Merge of 2.065.0-b3.
The new visitor class is used for IR generation. This removes some modifications from DMD source.
2014-02-10 08:47:25 +01:00
kai
cf88271ab9 Replace llvm::sys::Path with std::string.
In many cases this is straightforward. It makes the source LLVM 3.4 compatible without using #idef's.
2013-06-29 14:20:44 +02:00
kai
e556882be4 Simplify code for LLVM 3.4.
Introduces a compability function instead of a #if/#endif cascade.
2013-06-16 18:22:45 +02:00
kai
f1c71e4bac Make ldc compatible with LLVM 3.4
Development of LLVM 3.4 started with a cleanup of the path class (PathV1).
The changes here let ldc compile at least with rev. 184039 of LLVM.
2013-06-15 19:52:29 +02:00
David Nadlinger
0a96aea868 Sort includes according to style guidelines:
1. Main include corresponding to .cpp file, if any.
 2. DMD and LDC includes.
 3. LLVM includes.
 4. System includes.

Also updated a few include guards to match the default format.
2013-02-07 21:20:55 +01:00
David Nadlinger
9458911839 Added LLVM-style license headers to all our files. 2012-12-16 17:19:14 +01:00
kai
8519f448f8 Improve error message if gcc or other tools can not be found.
This fixes #192.
2012-10-14 12:39:35 +02:00
kai
59cf17a06b Rename variables for options ms-link and ms-lib.
This prevents a name clash and fixes #164.
2012-09-16 14:35:33 +02:00
kai
6e554c6647 Add support for MS Lib.
If the target OS is Windows using the MS runtime then use LIB.EXE as the archiver.
2012-09-16 00:03:27 +02:00
Alexey Prokhin
fdead0d154 Fixed #21 — Added -lib switch 2011-12-06 17:24:49 +04:00
Kelly Wilson
72ea043124 Recommit klickverbot's patch for LLVM-2.9. 2011-04-20 09:28:37 -06:00
Kelly Wilson
7c81278b9c Backed out changeset 5253bfbb3890 2011-04-20 00:28:23 -06:00
Kelly Wilson
b26b0f4196 Upgrade to LLVM-2.9. Thanks to David Nadlinger for the patch. 2011-04-19 21:57:15 -06:00
Christian Kamm
5694ec18ff Use getenv on Windows, closes #248. 2009-05-13 18:08:40 +02:00
Frits van Bommel
cf0b8936ce Factor out the code to find gcc, and add a command-line option to override the
default executable name.
This should help cross-compilation by allowing a cross-gcc to be specified from
the configuration file instead of only through the CC environment variable.
2009-05-04 13:32:16 +02:00