0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 08:12:37 +01:00

modules/llvm: Add info::versions information.

This commit is contained in:
Jason Volk 2020-02-18 15:48:59 -08:00
parent 9f18640bca
commit fd382d88a0

View file

@ -8,10 +8,13 @@
// copyright notice and this permission notice is present in all copies. The
// full license for this software is available in the LICENSE file.
#include <llvm/Config/llvm-config.h>
#include <llvm/Object/Wasm.h>
namespace ircd::llvm
{
extern info::versions version_api, version_abi;
static void init(), fini();
}
@ -23,6 +26,24 @@ IRCD_MODULE
ircd::llvm::fini,
};
decltype(ircd::llvm::version_api)
ircd::llvm::version_api
{
"llvm", info::versions::API, 0,
{
LLVM_VERSION_MAJOR,
LLVM_VERSION_MINOR,
LLVM_VERSION_PATCH,
},
LLVM_VERSION_STRING,
};
decltype(ircd::llvm::version_abi)
ircd::llvm::version_abi
{
"llvm", info::versions::ABI, 0
};
void
ircd::llvm::init()
{