Commit Graph
2291 Commits
Author SHA1 Message Date
David Nadlinger 6f236518b5 Fixes #123 – Linking of pre/post-condition in interface fails when interface implemented in separate module. 2012-06-19 22:37:46 +02:00
David Nadlinger e7afd77313 Merge pull request #128 from redstar/cmake_libconfig
New CMake module to locate libconfig++
2012-06-19 12:31:05 -07:00
kai 79c02f2a79 Remove some old variables which are unused now. 2012-06-19 18:08:42 +02:00
kai eb008fac44 Fixed wrong default value for LIBCONFIG++_FOUND 2012-06-19 06:52:46 +02:00
kai 51256b8c82 Fixed a wrong variable reference. 2012-06-19 06:44:36 +02:00
kai 6dd643608a Fix for review comments. 2012-06-18 21:26:18 +02:00
kai c5eba4a98b New CMake module to locate libconfig++
The current code to locate libconfig++ has some trouble:
- It is located in the main CMakeList file but should be a module of its own
- It depends on pkg-config which is not available on Windows
- The returned values are not really useful therefore the library name is hard coded

This commit tries to solve these problems. For a Unix-like system there should be no difference.
Additionally, you can override the variables on the command line which is useful for builds on Windows.
2012-06-18 19:50:11 +02:00
kai 920c563c7e More MSVC related changes to CMakeLists.txt.
- Added new variable for MSVC specific compiler flags
- Added custom target for MASM support
2012-06-18 19:21:58 +02:00
kai 93b2334803 Add more MSVC stuff to CMake files. 2012-06-15 12:20:02 +02:00
kai 9824a3a1f8 2nd attempt to compile ldmd with MSVC.
This reverts the previous commits and reduces MSVC odditites to a single place.
2012-06-15 12:13:27 +02:00
kai 3eef7b7d55 First attempt to create build files for MSVC. 2012-06-13 18:23:39 +02:00
kai 15ed853402 Add code to compile ldmd with MSVC. 2012-06-13 18:23:07 +02:00
kai 95cb8af435 No need to exclude non-existing file root/win32.c from build. 2012-06-13 07:14:29 +02:00
David Nadlinger 27349f3589 Add LLVM_LDFLAGS twice to the LDMD link command to work around build problems. 2012-06-11 00:31:55 +02:00
David Nadlinger 7652fb8015 Explicitly include <unistd.h>. 2012-06-11 00:31:54 +02:00
David Nadlinger 295798877c Avoid NULL/0 conversion warning. 2012-06-11 00:01:15 +02:00
David Nadlinger 53018c76f8 And climits.
Sorry for the noise.
2012-06-10 22:52:11 +02:00
David Nadlinger 6ddf84b61e Explicitly include cstdarg in LDMD.
Hopefully compiles everywhere now.
2012-06-10 22:20:13 +02:00
David Nadlinger 9489508046 Write LDMD executable to bin/. 2012-06-10 22:19:54 +02:00
alexrp 22302f5f45 Correctly define D_PIC version identifier when relocation model is PIC. 2012-06-10 21:29:28 +02:00
David Nadlinger 98261321d8 Merge pull request #117 from alexrp/master
Return 0 immediately after printing -version/--version.
2012-06-10 09:56:03 -07:00
alexrp 00926c5654 Return 0 immediately after printing -version/--version. 2012-06-09 20:43:50 +02:00
David Nadlinger fdee1fc725 Add back support for -C, for backwards compatibility. 2012-06-07 11:17:40 +02:00
David Nadlinger f131647709 Pass through unknown switches to LDC. 2012-06-07 11:17:39 +02:00
David Nadlinger b549edd60c Removed now obsolote bin/ directory. 2012-06-07 11:17:39 +02:00
David Nadlinger 6ced6dae77 Fix #45, fix #100: LDMD rewrite for more sophisticated emulation of DMD command line behavior.
It ain't pretty. I know.
2012-06-07 11:17:39 +02:00
David Nadlinger 62bfda0259 Fix #113 - promotion of small static array arguments to registers. 2012-06-06 22:55:59 +02:00
David Nadlinger ba9fb721ed Removed trailing whitespace. 2012-06-06 20:41:46 +02:00
David Nadlinger d5084d9051 Factored out x86 ABI code to separate file. 2012-06-06 20:39:38 +02:00
David Nadlinger 1c301aabcd Fix #105 - don't randomly overwrite di files with thread.di.
DI_CMD is the CMake equivalent of a global variable, so it needs to be set in any case.
2012-06-06 17:54:07 +02:00
kai 175810bdab Consolidate all MSVC related files for LDC/LDC2 in 1 folder. 2012-06-06 17:32:47 +02:00
kai 086e0d251b Latest changes to compile LDC with MSVC. 2012-06-06 17:29:21 +02:00
David Nadlinger 04ea9ceefc Merge pull request #112 from svenstaro/master
Fix typos: MUTILIB to MULTILIB
2012-06-06 07:19:02 -07:00
David Nadlinger 260faae6ec Remove inreg attribute from static arrays when enregistering them. 2012-06-06 15:44:54 +02:00
Sven-Hendrik Haase f1079bfbf6 Fix typos 2012-06-06 14:54:39 +02:00
David Nadlinger 6ad085a1f8 Only allow __Dmain to remain undefined in druntime to avoid hidden build errors. 2012-06-05 10:57:52 +02:00
David Nadlinger 1ead8476e5 Merge remote-tracking branch 'dansanduleac/i104_2' 2012-06-05 10:54:18 +02:00
Dan Sanduleac 74a1961d1f on APPLE, allow undefined symbols (for __Dmain) when linking druntime & phobos 2012-06-05 09:41:54 +01:00
David Nadlinger 911e00c434 Bump druntime/Phobos version to 2.059. 2012-06-05 10:27:35 +02:00
David Nadlinger 51b601f900 Merge pull request #108 from dansanduleac/i49_2
Fix #49: Static arrays should be passed using byval
2012-06-04 23:01:06 -07:00
Dan Sanduleac 2748cdaa88 Fix #49: Static arrays that don't fit in a register should be passed using byval 2012-06-05 02:52:25 +01:00
David Nadlinger d24592b3e7 Fix #77 - LDC1 fails to compile tango.io.vfs.ZipFolder.
I think the same rewrite for contract this should be valid in D1 - if I missed something crucial, feel free to revert.
2012-06-02 19:21:36 +02:00
David Nadlinger 509a5799ff Use hand-written .di files if present along the source – fixes issue #95. 2012-06-02 16:49:47 +02:00
David Nadlinger 96b7fb6336 Always cache libconfig++ flags; tell user if pkg-config could not be found.
Previously, it was not clear to the user if pkg-config detection failed, leading to surprises if libconfig++ actually was present on the system.

The LIBCONFIG* variables are now always cached so that they can conveniently be set from ccmake/cmake-gui.
2012-06-02 15:43:14 +02:00
David Nadlinger 5459135aa5 Updated druntime - fixes issue #101. 2012-06-02 14:06:38 +02:00
kai 30cc6e309a Add more files required for MSVC. 2012-06-01 17:49:28 +02:00
kai 875649aced Merge remote branch 'origin/master' 2012-05-26 19:52:27 +02:00
David Nadlinger 1f5bced327 Don't install libldc for static builds. 2012-05-25 19:41:53 +02:00
David Nadlinger 8dea63e8a8 Fix #98 - Build broken using CMake 2.8.8.
As per the CMake docs, LANGUAGE is only to be set for files that are actually compiled. In versions prior to 2.8.7, setting it globally worked fine nevertheless.
2012-05-25 19:07:57 +02:00
David Nadlinger 1805e534b2 Fix issue 97 - <<= broken for LDC 1.
This code path was introduced in the 1.074 merge.
2012-05-25 15:54:42 +02:00