aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAlexandre Rames <alexandre.rames@linaro.org>2016-07-25 14:14:22 +0100
committerAlexandre Rames <alexandre.rames@linaro.org>2016-07-28 12:15:46 +0000
commit8d0ffa353a67f01b9f8f85f04b9c6d6da529aa84 (patch)
tree99d99db2d9a641a18baaa84e454041eadffab8b7 /examples
parent225c69c0b770a7f09b6f23eadc7f26eb0737e747 (diff)
Do not compile the AArch32 disassembler example on OSX.
It does not compile: it relies on ELF headers. Change-Id: Ife8c11c4e4e9f2708f99e2c6bf8db82b021795fd
Diffstat (limited to 'examples')
-rw-r--r--examples/aarch32/disasm-a32.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/aarch32/disasm-a32.cc b/examples/aarch32/disasm-a32.cc
index 934bbfdb..11fb126d 100644
--- a/examples/aarch32/disasm-a32.cc
+++ b/examples/aarch32/disasm-a32.cc
@@ -25,6 +25,9 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+// The example assumes support for ELF binaries.
+#ifndef __linux__
+
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
@@ -302,3 +305,16 @@ int main(int argc, char** argv) {
munmap(base_addr, sb.st_size);
return 0;
}
+
+
+#else
+
+#include "globals-vixl.h"
+
+// TODO: Implement this example for macOS.
+int main(void) {
+ VIXL_WARNING("This example has not been implemented for macOS.");
+ return 0;
+}
+
+#endif // __APPLE__