Kai Nacke
cb0f2e7e6a
Fix space handling for different paths.
...
E.g. on my machine LLVM is installed in folder C:\My Program Files\LLVM.
Fixes part of issue #1465 . (PR 1466 is required for complete fix.)
2016-05-16 00:12:27 +02:00
David Nadlinger
51afced357
Also clang-tidy driver/
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
d802dc126e
Windows: use forward slashes when replacing %%ldcbinarypath%% in config file
...
And use it for the AppVeyor release to make it portable.
2015-10-11 12:54:17 +02:00
Martin
9956d326f0
Implement -conf command-line switch for LDC2 and LDMD2
2015-10-07 02:27:49 +02:00
Martin
1670323ebb
Refactor argv[0] management, related path searches etc.
2015-09-27 20:47:14 +02:00
kai
2e7a6d43ac
Use C version of libconfig.
...
libconfig++ is only a thin wrapper around libconfig. Because of the
use of exception handling this wrapper requires more memory than needed.
As we have our own wrapper (ConfigFile) just drop the C++ stuff.
2014-10-12 21:59:24 +02:00
yglukhov
6b3ad0a002
Update configfile.cpp
...
Fix of a mistake, making it impossible to use config file in current dir.
2014-03-15 23:01:25 +02:00
kai
8fb0b12e9e
Replace llvm::sys::Path with llvm::SmallString in configfile.cpp.
...
Also adds some required functions for LLVM 3.4.
2013-06-29 15:10:30 +02:00
kai
683294cec9
Fix a typo in Linux code.
2013-06-16 17:57:25 +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
kai
51e1a6cb54
Replace hard-coded path with registry lookup on Windows.
...
A hard-coded path does not play nicely with a generic installer.
The installation path is now looked up in the registry with the
key SOFTWARE\\ldc-developers\\LDC\\<version>\\Path.
It is the responsibility of the installer to set this value.
2013-05-06 07:52:25 +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
b50c6a8026
Look for configuration file in folder etc relative to executable.
...
Fixes issue #195 .
2012-10-14 00:25:08 +02:00
kai
83d14c54da
Explicit call conversion operator on Setting class.
...
This fixes issue #196 .
2012-10-13 19:48:13 +02:00
Eldar Insafutdinov
a8398d64e8
Moved configfile to the driver
2012-04-03 21:18:16 +01:00