Frederich Munch
d90972a879
Rename AddHostIncludes to AddHostArguments.
...
Move the addition of -resource-dir argument into the function.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-18 15:44:17 +02:00
Frederich Munch
38a74b7a23
Don't allocate a string for every argument in AddHostIncludes.
...
Use const char* for option and std::string for value.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-18 15:44:17 +02:00
Frederich Munch
4cdbc0461e
Honor clangs -nostdinc++ and -nobuiltininc flags.
...
Rename AddHostCXXIncludes to AddHostIncludes and delineate between -nostdinc++
and -nobuiltininc. When cling is invoked with -nobuiltininc, do not #include any runtime
files on startup. Make ABI incompatability error consistent across platforms and add a test to verify behavior when this occurs.
More importantly this allow for easier debugging of Decl unloading as the amount of
declarations on startup is greatly reduced.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-18 15:44:17 +02:00
Frederich Munch
915935eb79
Fix possible crash and buffer overrun scanning arguments.
...
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-18 15:44:16 +02:00
Frederich Munch
bbcf7651c3
Allow cling to find C++ headers for libc++ built with cling.
...
When built with libc++ try to use a version of clang that sits next to cling to determine
C++ header paths. Fallback to LLVM_CXX if no paths were added.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-18 15:44:16 +02:00
Frederich Munch
378b926d72
Match exception specification for InterpreterException.
...
Some compilers are complaining about the mismatching exception specifications
between destructors of InterpreterException and its subclasses.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-17 10:14:33 +02:00
Frederich Munch
afe23db9d4
Fix cling when built for 32 bit architectures.
...
Use uintptr_t as void* and uint64_t are not guaranteed to be the same size.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-15 15:29:11 +02:00
Vassil Vassilev
ec6d72cddf
Shorten logs.
2016-08-15 15:29:10 +02:00
Vassil Vassilev
d3e43c7567
Add full paths to the shadow default compiler invocation.
2016-08-15 14:45:16 +02:00
Frederich Munch
3e65a6fee0
CPT: Fix git log hanging.
...
git log can hang waiting for stdin unless --no-pager argument is given.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-15 11:54:05 +02:00
Frederich Munch
0f487d12af
Check HostCXXI is empty rather than size() < 3.
...
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-15 11:54:05 +02:00
Vassil Vassilev
9bbd82c365
Allow x86 to fail in release, for now.
2016-08-15 11:54:05 +02:00
Frederich Munch
6e13c66259
When building on Travis, use clone that Travis has already done. Saves some time, and necessary for pull-requests.
...
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-13 19:44:21 +02:00
Frederich Munch
eeb1e10e8b
Don't add -nostdinc flag just because popen succeeded, make sure we got what we were looking for first.
...
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-13 19:44:21 +02:00
Vassil Vassilev
6e23bb5f1e
Optionally, don't cleanup after build, helps debugging.
...
Debug file dumps should be done outside cpt.
2016-08-12 15:14:10 +02:00
Frederich Munch
109812d223
Fix crash from possible null return from getcwd.
2016-08-12 14:29:07 +02:00
Frederich Munch
bcb75e1476
Don't create a virtual file with a valid file name.
...
This fix allows running a file in the current working directory.
2016-08-12 14:29:07 +02:00
Frederich Munch
a7f5c1719e
Set CLING_NOHISTORY when running tests.
2016-08-12 14:14:06 +02:00
Frederich Munch
e3265d1d8c
Add %built_cling substitution for lit so tests can be run from either the build or installations directories.
2016-08-12 14:14:06 +02:00
Frederich Munch
d7bc590e03
Don't invoke echo for stdin, read from /dev/null. OS X was intermittently hanging prior.
2016-08-12 13:44:05 +02:00
Frederich Munch
8fc1289cd4
Make sure to get PATH_MAX on OS X with gcc.
2016-08-12 13:44:05 +02:00
Frederich Munch
33c05d3105
Relocate PPOpts variable initialization and remove comment.
2016-08-12 13:44:05 +02:00
Vassil Vassilev
2aba8b8cc8
Build only the master on Windows, too.
2016-08-12 11:55:31 +02:00
Vassil Vassilev
9314f1c35e
We know cling's test suite doesn't work on Win yet.
2016-08-12 11:48:53 +02:00
Vassil Vassilev
4c37f02f8d
Don't build all branches but only the master and pull requests.
2016-08-12 11:33:33 +02:00
Vassil Vassilev
ec1a6fec18
Typo.
2016-08-12 09:44:16 +02:00
Vassil Vassilev
c5b99ae797
Make the json findable when we only download and call cpt.py.
2016-08-11 12:30:28 +02:00
Frederich Munch
a875004a73
Fix check-cling target, broken in commit b461173.
...
Signed-off-by: Bertrand Bellenot <bertrand.bellenot@cern.ch>
2016-08-11 10:59:21 +02:00
Vassil Vassilev
8a95b318dd
Add ccache in a different way, fixing our binary releases.
2016-08-10 19:06:40 +02:00
Vassil Vassilev
d2ef758e92
More debug output on failure.
2016-08-10 19:06:40 +02:00
Vassil Vassilev
c2feafce5c
Try using ccache and clang-3.7.
...
CMake thinks ccache as the compiler and clang-3.7 as a flag when
generating information of cling-compiledata.h
2016-08-10 19:06:40 +02:00
Vassil Vassilev
521a4f04da
Mark platform as expected to fail.
2016-08-10 19:06:40 +02:00
Vassil Vassilev
511bc75644
More debug info.
2016-08-10 19:06:40 +02:00
Vassil Vassilev
d18e9ecdba
We shouldn't force using libcxx.
2016-08-10 19:06:40 +02:00
Vassil Vassilev
d48e229db4
Only import pip if needed.
...
It requires installing a package on the system.
2016-08-10 19:06:40 +02:00
Vassil Vassilev
8040ee4212
Only the master can move the nightlies tag.
2016-08-10 19:06:39 +02:00
Vassil Vassilev
9a3bed59b1
Cache installed packages.
2016-08-10 19:06:39 +02:00
Vassil Vassilev
c529e3f001
Try building with gold.
2016-08-10 19:06:39 +02:00
Vassil Vassilev
5b046c6775
Typo.
2016-08-09 21:44:07 +02:00
Vassil Vassilev
cab75278bb
Add link to cling web page.
2016-08-09 21:44:07 +02:00
Vassil Vassilev
7b07844048
Typo.
2016-08-09 21:27:58 +02:00
Vassil Vassilev
81a38e7e53
Describe cling release steps.
2016-08-09 21:27:58 +02:00
Vassil Vassilev
d44f2430ca
Bump version.
2016-08-09 21:27:58 +02:00
Vassil Vassilev
2a55c14cc0
Prepare for v0.3 release.
...
Update release information.
2016-08-09 20:58:07 +02:00
Vassil Vassilev
5877f3acb2
Revert "Disable llvm's terminal support."
...
We need this for colored diagnostics.
2016-08-09 12:29:32 +02:00
Vassil Vassilev
0f5ab9641f
Disable llvm's terminal support.
...
We have our own terminal library. Not linking against libs like tinfo and ncurses
makes our binaries more platform independent.
2016-08-09 12:29:32 +02:00
Vassil Vassilev
add2c0bf52
We are not ready for notifications, yet.
2016-08-08 14:59:09 +02:00
Vassil Vassilev
e21ea6d539
Don't do extra checks on the variable.
2016-08-08 14:29:08 +02:00
Vassil Vassilev
20cc177632
Fix adding the date prefix.
2016-08-08 13:28:47 +02:00
Bertrand Bellenot
4dcd5f599e
Add Universal CRT or Windows 10 SDK in the include PATH.
...
This allows to run cling in a regular windows command prompt (instead of a Visual Studio Developer Command Prompt)
The issue was reported on the Forum: https://root.cern.ch/phpBB3/viewtopic.php?f=21&t=22006#p96749
2016-08-08 12:14:09 +02:00