Commit Graph

36 Commits

Author SHA1 Message Date
Jonas Hahnfeld
76e87e6686 Remove REQUIRES: not_system-windows
Replace it by the standard UNSUPPORTED: system-windows.
2023-08-14 18:44:02 +02:00
Jonas Hahnfeld
c1574685cb Automatically adjust C++ version of PCH in Cling's test
This fixes test/CodeUnloading/PCH/VTables.C with C++17 and later.
2023-07-20 08:44:03 +02:00
Jonas Hahnfeld
a9ebc3862c Remove unused tools from Cling's lit.cfg 2023-07-20 08:44:03 +02:00
Axel Naumann
b921ac814a Bring vanilla-cling lit feature back:
it is needed for test/Autoloading/AutoForwarding.C.
2021-03-16 09:59:04 +01:00
Axel Naumann
b118f4dee3 Get rid of extra-complex built_cling:
that is anyway what we want to test, always.
And nothing seems to set the env var.
2021-02-25 20:44:18 +01:00
Axel Naumann
ffc267b9dd Import updated lit config:
Copy and adapt lit.cfg from clang.
Export the CMake variable cling needs.
Add missing, now needed call to lit.llvm.initialize.
Remove unused "loadable_module" feature.
2021-02-25 20:44:18 +01:00
Simeon Ehrig
e47bb75f9f Allows to configure CUDA sm level for Cling CUDA tests
- the CUDA sm level can be set via CLING_TEST_CUDA_SM_LEVEL
environment variable (e.g. "35"), before running the tests
2021-02-18 09:29:04 +01:00
Pratyush Das
e978660f35 Remove dependence on svn
LLVM repository has migrated from svn to git
2021-02-16 22:29:03 +01:00
Simeon Ehrig
b2bfd6e19f Extend the cling-test to deal with CUDA SDKs that are not in the default location
- To enable the CUDA test, lit detects the `libcudart.so` in
`LD_LIBRARY_PATH`. Now lit also set the CUDA SDK root of
`libcudart.so` as cling parameter (`--cuda-path`) in the tests.
- Pass through the environment variable `CUDA_VISIBLE_DEVICES`.
2021-02-10 15:18:14 +01:00
Pratyush Das
bc70947c9a Fix broken vanilla-cling tests.
Change condition of adding vanilla-cling, change directory locations for
downloaded binary release.
2019-12-23 06:44:28 +01:00
Vassil Vassilev
272905eced Implement clang plugin support.
Clang allows third party shared libraries to provide user-defined
extensions. For example, a custom libTemplateInstantiation.so can
visualize all template instantiation chains in clang. To enable it
one needs to pass a set of options such as -fplugin.

Cling should be able to inherently work with clang plugins. However,
cling still does not make full use of the clang driver where the plugin
setup is handled.

This patch enables plugins in cling and extends them in some aspects.
In particular, cling allows loading of plugins from shared libraries
but also if they are linked to the same library where cling is. This is
very useful in cases where cling runs itself in a shared library (eg
libCling). Users of libCling (such as ROOT) prefer to keep all llvm and
clang related symbols local to avoid symbol clashes if there is another
version of clang and llvm linked against a package. This can be done by
dlopen-ing libCling with RTLD_LOCAL visibility mode. Then the only way
for clang plugins to work in this scenario is to be linked to libCling.

Patch by Aleksandr Efremov and me.
2018-07-28 13:17:44 +02:00
Simeon Ehrig
3b656d1d3f add automatic load of libcudart.so at start of cling -xcuda 2018-03-23 18:29:07 +01:00
Bertrand Bellenot
8720965ee5 Dont pass -fPIC flag on Windows (unsupported option) 2017-07-06 16:59:40 +02:00
Roman Zulak
9ea5a480da Remove dead code from LLVM upgrade.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2017-06-09 17:45:50 +02:00
Vassil Vassilev
f10a89efb1 Remove on_clone, it doesn't exist anymore in llvm. 2017-06-08 10:29:13 +02:00
Axel Naumann
4922050e9b Create lit feature for stand-alone / non-embedded cling and use it! 2017-05-11 16:44:31 +02:00
Frederich Munch
2a41c186d8 Lit: Add IsWindows variable. 2017-02-21 16:34:19 +01:00
Frederich Munch
42971e42cd Lit: Add %mkdir, %rm, and %rmdir substitutions. 2017-02-21 16:34:19 +01:00
Frederich Munch
fa5c74997b Lit: Fixup Windows cling_obj_root path when built with CMake. 2017-02-21 16:34:19 +01:00
Frederich Munch
a939c253d8 Lit: Use LLCM/Clang way of testing ‘execute_external’. Fix-up Windows paths based on this. 2017-02-21 16:34:19 +01:00
Frederich Munch
311a557be1 Windows: Interpret -nostdinc++ as -nostdinc which clang does not use on Windows backend. Fixes ABI and NoStdInc tests. 2017-02-17 15:14:06 +01:00
Frederich Munch
3a519fe9cd Windows: Get RunAgainstClangTestSuite.C working. 2016-12-12 12:44:10 +01:00
Frederich Munch
d4aed2527d Add CLING_EXPORT macro. 2016-12-12 12:44:09 +01:00
Frederich Munch
52cd30dbef Lit: Add setenv transformation to use export/set on Unix/Windows. 2016-12-12 12:44:09 +01:00
Frederich Munch
e265a84fef Lit: Use proper Windows paths for easier copy/paste. 2016-12-12 12:44:09 +01:00
Frederich Munch
960f6e4be7 Lit: Propagate LIB & LIBPATH env-vars on Windows. 2016-12-12 12:44:09 +01:00
Bertrand Bellenot
f8f73fd444 On Windows we need -nostdinc as C and C++ header locations are identical. 2016-11-30 10:14:14 +01:00
Bertrand Bellenot
1f6b27c24c Make non-windows selectable for tests. 2016-11-30 10:14:13 +01: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
Axel Naumann
47a6a5f288 Add %llvmsrcdir replacement. Remove leading space (?!). 2016-06-15 14:14:34 +02:00
Axel Naumann
6e4f29775c Fix non-MacOS platform.mac_ver(). 2014-01-28 15:42:52 +01:00
Axel Naumann
8efd17d0e6 On MacOS 10.9 our clang will not find the stdlib. Use the XCode's clang instead. 2014-01-28 15:07:55 +01:00
Vassil Vassilev
c31d15a1a1 Update cling's testsuite to use the newest llvm lit. 2013-09-27 14:33:04 +02:00
Jerome Beclin
162101dd9d Instrument the error recovery testsuite with .store- and .compare- State.
Add a special lit substitution giving us the executed test folder, so that
before next run we could cleanup.
2013-08-21 14:29:57 +02:00
Axel Naumann
05ba8a3a07 Move cling from cint/ to interpreter/ (Will add a "we have moved" readme to cint/cling.)
git-svn-id: http://root.cern.ch/svn/root/trunk@45844 27541ba8-7e3a-0410-8455-c3a389f83636
2012-09-05 09:37:39 +00:00