Commit graph

14 commits

Author SHA1 Message Date
Martin Kinkelin
3f7cf75200 CMake: Drop detection of unsupported ldc2 and gdc host compilers 2019-07-28 02:37:39 +02:00
Moritz Maxeiner
77d8a7b68a Support building with gdmd host compiler 2019-06-09 02:49:23 +02:00
Martin Kinkelin
b19a22a998 Fix compilation issues on macOS with DMD host compiler >= 2.079
... due to its D `long` C++ mangling change.
2018-05-19 16:31:42 +02:00
Martin
a2808ec46e 64-bit OSX: Mangle [u]long as C++ [u]int64_t
This is a breaking ABI change and affects LDC itself as mixed D/C++ code
base. So we now need to check the front-end version of the D host
compiler and adapt the corresponding C++ types accordingly.
2018-04-13 21:13:38 +02:00
Johan Engelen
d8697cdcb0 [cmake] Remove code that tries to resolve "~" in host compiler variable passed by the user. It conflicts with -DD_COMPILER="dmd", which is much more important to support. 2016-08-08 16:47:45 +02:00
Johan Engelen
29d1a2037c [cmake] Fix passing of host compiler with relative path by ENV{DMD}. 2016-08-08 16:27:15 +02:00
Johan Engelen
dfbb930440 [cmake] Fix passing of host compiler flags with cmake -DD_COMPILER. 2016-08-08 16:26:22 +02:00
David Nadlinger
557a2562b5 cmake: Respect D_COMPILER_FLAGS when extracting linker flags
It is somewhat unclear whether the variable can actually be set
in a valid way at this point, though.
2016-07-27 00:25:23 +01:00
Johan Engelen
bff4d46f1b [CMake] Allow relative paths for D_COMPILER
Resolves #1495
2016-05-18 19:18:15 +02:00
Johan Engelen
3b5e8a9a70 [cmake] Allow specification of D_COMPILER on CMake cmdline.
Use with `cmake -DD_COMPILER=ldmd2`. Resolves issue #1320
2016-05-03 21:59:48 +02:00
Johan Engelen
febfcad3a2 Add "built with D compiler version" to --version output. 2016-03-21 14:13:30 +01:00
Johan Engelen
a56df03772 Fix FindDCompiler.cmake script: before, the script would find a previously built LDC from the install prefix path. 2016-02-21 16:07:07 +01:00
Johan Engelen
b017facbcd Add one "LDC builds LDC" to Travis. 2016-02-18 13:49:24 +01:00
Johan Engelen
29ce4012af dmd2 --> ddmd. Merge (almost all of) our changes to dmd source into the new D source of dmd 2.069.2.
Also adds the CMake infrastructure to compile and link the D source files.

The build is partially broken:
- A few files in Phobos and druntime do not build
- MSVC build is broken because of unresolved symbols involving reals
2016-01-28 19:03:58 +01:00