From e0d6ac8097bfd148a9956128a48b7d1addf81e68 Mon Sep 17 00:00:00 2001 From: Stefan Radomski Date: Tue, 11 Jul 2017 10:02:26 +0200 Subject: Removed iostreams and PGO preparation --- CMakeLists.txt | 14 ++++++++++++++ src/uscxml/interpreter/FastMicroStep.cpp | 1 - 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f1fecb..8a4ff9e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -474,6 +474,20 @@ endif() add_subdirectory(src/uscxml) add_subdirectory(src/bindings) +# https://gcc.gnu.org/onlinedocs/gcc-4.7.2/gcc/Optimize-Options.html#Optimize-Options +# https://clang.llvm.org/docs/UsersManual.html#profile-guided-optimization +if (${CMAKE_CXX_COMPILER_ID} STREQUAL Clang) + # add_definitions("-fprofile-instr-generate") + # add_definitions("-fprofile-generate=profiling") + # no measureable effect + # set_property(SOURCE src/uscxml/interpreter/FastMicroStep.cpp APPEND_STRING PROPERTY COMPILE_FLAGS " -fprofile-instr-generate=foo") + # set_property(SOURCE src/uscxml/interpreter/FastMicroStep.cpp APPEND_STRING PROPERTY COMPILE_FLAGS " -Ofast") + # set_property(SOURCE src/uscxml/interpreter/LargeMicroStep.cpp APPEND_STRING PROPERTY COMPILE_FLAGS " -Ofast") + # set_property(SOURCE src/uscxml/interpreter/FastMicroStep.cpp APPEND_STRING PROPERTY COMPILE_FLAGS " -fomit-frame-pointer") + # set_property(SOURCE src/uscxml/interpreter/LargeMicroStep.cpp APPEND_STRING PROPERTY COMPILE_FLAGS " -fomit-frame-pointer") +endif() + + if (BUILD_AS_PLUGINS) file(GLOB USCXML_PLUGINS ${CMAKE_SOURCE_DIR}/contrib/src/Pluma/*.cpp diff --git a/src/uscxml/interpreter/FastMicroStep.cpp b/src/uscxml/interpreter/FastMicroStep.cpp index 1345403..ab6b5f9 100644 --- a/src/uscxml/interpreter/FastMicroStep.cpp +++ b/src/uscxml/interpreter/FastMicroStep.cpp @@ -30,7 +30,6 @@ #include "uscxml/interpreter/Logging.h" #include // strtol -#include #undef USCXML_VERBOSE #undef WITH_CACHE_FILES -- cgit v0.12