summaryrefslogtreecommitdiffstats
path: root/Source/cmELF.h
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2021-07-12 19:38:43 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2021-07-12 20:11:38 (GMT)
commitb2c03347b07e24a5298361451277264fda8fdb4c (patch)
treea75226752cd15e5b81a079c3410ca54540de51a3 /Source/cmELF.h
parentac984cb5f75349fd5ed00cc52fbb5154b7bb1527 (diff)
downloadCMake-b2c03347b07e24a5298361451277264fda8fdb4c.zip
CMake-b2c03347b07e24a5298361451277264fda8fdb4c.tar.gz
CMake-b2c03347b07e24a5298361451277264fda8fdb4c.tar.bz2
file(GET_RUNTIME_DEPENDENCIES): Check architecture of dependencies
Fixes: #22106
Diffstat (limited to 'Source/cmELF.h')
-rw-r--r--Source/cmELF.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmELF.h b/Source/cmELF.h
index c479e2b..f88ebe9 100644
--- a/Source/cmELF.h
+++ b/Source/cmELF.h
@@ -4,6 +4,7 @@
#include "cmConfigure.h" // IWYU pragma: keep
+#include <cstdint>
#include <iosfwd>
#include <memory>
#include <string>
@@ -72,6 +73,9 @@ public:
/** Get the type of the file opened. */
FileType GetFileType() const;
+ /** Get the machine of the file opened. */
+ std::uint16_t GetMachine() const;
+
/** Get the number of ELF sections present. */
unsigned int GetNumberOfSections() const;