aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2016-08-29 16:17:31 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2016-08-29 16:17:31 +0200
commit7a3326e8687cd8c86750a2db8348ab34c261b426 (patch)
tree935790ebd09d658da7ca2a19436ec060797f2714
parentd9ab0ed7af0ca5d962264866b06a9c0aa89d05d3 (diff)
downloadstm32f103-playground-7a3326e8687cd8c86750a2db8348ab34c261b426.tar.gz
stm32f103-playground-7a3326e8687cd8c86750a2db8348ab34c261b426.tar.bz2
stm32f103-playground-7a3326e8687cd8c86750a2db8348ab34c261b426.tar.xz
stm32f103-playground-7a3326e8687cd8c86750a2db8348ab34c261b426.zip
o Fixing host/ build.
-rw-r--r--host/CMakeLists.txt15
-rw-r--r--host/elfinfo.cpp1
2 files changed, 1 insertions, 15 deletions
diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt
index ea8894b..c991597 100644
--- a/host/CMakeLists.txt
+++ b/host/CMakeLists.txt
@@ -2,21 +2,6 @@ cmake_minimum_required(VERSION 3.2)
project(host C CXX ASM)
-add_executable(host1.elf host1.cpp
- ../tinyprintf/tinyprintf.h ../tinyprintf/tinyprintf.c
- )
-
-target_include_directories(host1.elf PUBLIC
- ../tinyprintf
- ../playground/include)
-target_compile_definitions(host1.elf PUBLIC TINYPRINTF_DEFINE_TFP_SPRINTF=0 TINYPRINTF_OVERRIDE_LIBC=0)
-
-add_executable(elf3 elf3.cpp)
-target_link_libraries(elf3 elf)
-
-add_executable(elf4 elf4.cpp)
-target_link_libraries(elf4 elf bsd)
-
add_executable(elfinfo elfinfo.cpp)
target_compile_options(elfinfo PUBLIC "--std=c++14")
target_link_libraries(elfinfo elf)
diff --git a/host/elfinfo.cpp b/host/elfinfo.cpp
index a929325..ffe2762 100644
--- a/host/elfinfo.cpp
+++ b/host/elfinfo.cpp
@@ -10,6 +10,7 @@
#include <getopt.h>
#include <inttypes.h>
#include <elf.h>
+#include <ctype.h>
using std::vector;