mirror of
https://git.freebsd.org/ports.git
synced 2025-07-13 23:39:20 -04:00
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
11 lines
359 B
C++
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;
|
|
}
|