ports/lang/cling/files/patch-tools_cling_tools_driver_cling.cpp
Roman Bogorodskiy b4fa50f637 Add lang/cling: Interactive C++ Interpreter Based on LLVM and Clang Libs
Cling is an interactive C++ interpreter,
built on the top of LLVM and Clang libraries.
Its advantages over the standard interpreters are that it has command prompt
and uses just-in-time (JIT) compiler for compilation.
One of Cling's main goals is to provide contemporary, high-performance
alternative of the current C++ interpreter in the ROOT project "CINT".
The backward-compatibility with CINT is major priority during the development.

Its main advantages are:
    Production-grade parser.
    Just-in-time compiler (JIT).
    Modular C++ API from the ground up.
    Separate parser and execution engine.
    C++ 11 support through clang.

PR:		215689
Submitted by:	Mahdi Mokhtari
Reviewed by:	mat, novel
Differential Revision:	https://reviews.freebsd.org/D9012
2017-01-03 08:06:59 +00:00

11 lines
359 B
C++

--- tools/cling/tools/driver/cling.cpp.orig 2016-12-29 13:54:45 UTC
+++ tools/cling/tools/driver/cling.cpp
@@ -51,7 +51,7 @@ int main( int argc, char **argv ) {
#endif
// Set up the interpreter
- cling::Interpreter interp(argc, argv);
+ cling::Interpreter interp(argc, argv, "%%LLVM_PREFIX%%/");
if (interp.getOptions().Help) {
return 0;
}