Add build information to binary
Build information will be compiled into the binary. An associated
function was added to retrieve this information for displaying in
applications that consume this library.
Signed-off-by: Ben Tyner <ben.tyner@ibm.com>
Change-Id: I68e467c714ea11c0f5639670396617bc0ff51334
diff --git a/src/isolator/hei_isolator.cpp b/src/isolator/hei_isolator.cpp
index f431cb3..ef74b2e 100644
--- a/src/isolator/hei_isolator.cpp
+++ b/src/isolator/hei_isolator.cpp
@@ -1,4 +1,5 @@
+#include <buildinfo.hpp>
#include <isolator/hei_isolation_node.hpp>
#include <isolator/hei_isolator.hpp>
#include <register/hei_operator_register.hpp>
@@ -73,4 +74,9 @@
}
}
+const char* getBuildInfo()
+{
+ return BUILDINFO;
+}
+
} // end namespace libhei