-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added initial support of C++23/26 for LLVM 17.x.
Added ClangRuntime class into Python side.
- Loading branch information
Showing
9 changed files
with
73 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include <RG3/LLVM/Compiler.h> | ||
|
||
#include <llvm/Config/llvm-config.h> | ||
|
||
|
||
namespace rg3::llvm | ||
{ | ||
std::string ClangRuntimeInfo::getRuntimeInfo() | ||
{ | ||
return std::format("Clang {} built for {}", LLVM_VERSION_STRING, LLVM_HOST_TRIPLE); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#pragma once | ||
|
||
#define BOOST_PYTHON_STATIC_LIB | ||
#include <boost/python.hpp> | ||
|
||
|
||
namespace rg3::pybind | ||
{ | ||
struct PyClangRuntime | ||
{ | ||
static boost::python::str getRuntimeInfo(); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#include <RG3/PyBind/PyClangRuntime.h> | ||
|
||
#include <RG3/LLVM/Compiler.h> | ||
|
||
|
||
namespace rg3::pybind | ||
{ | ||
boost::python::str PyClangRuntime::getRuntimeInfo() | ||
{ | ||
const auto str = rg3::llvm::ClangRuntimeInfo::getRuntimeInfo(); | ||
return str.c_str(); | ||
} | ||
} |