diff options
author | Stefan Radomski <github@mintwerk.de> | 2017-07-11 08:02:26 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2017-07-11 08:02:26 (GMT) |
commit | e0d6ac8097bfd148a9956128a48b7d1addf81e68 (patch) | |
tree | 3ec56cc762a8134486e5c1ffb99cdf68be79f020 | |
parent | 286f8d747d198a66b81396ba8197b101ae2d59ed (diff) | |
download | uscxml-e0d6ac8097bfd148a9956128a48b7d1addf81e68.zip uscxml-e0d6ac8097bfd148a9956128a48b7d1addf81e68.tar.gz uscxml-e0d6ac8097bfd148a9956128a48b7d1addf81e68.tar.bz2 |
Removed iostreams and PGO preparation
-rw-r--r-- | CMakeLists.txt | 14 | ||||
-rw-r--r-- | src/uscxml/interpreter/FastMicroStep.cpp | 1 |
2 files changed, 14 insertions, 1 deletions
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 <stdlib.h> // strtol -#include <iostream> #undef USCXML_VERBOSE #undef WITH_CACHE_FILES |