Skip to content

Commit df99d10

Browse files
author
me
committed
- missing final
- use link time optimization. will probably not working under windows but lets see
1 parent 6f88151 commit df99d10

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/msgpack_sinks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace msgpackcpp
1919

2020
sink_vector(std::vector<Byte,Alloc>& buf_) : buf{buf_} {}
2121

22-
void write(const char* data, size_t nbytes) override
22+
void write(const char* data, size_t nbytes) override final
2323
{
2424
buf.insert(end(buf), data, data + nbytes);
2525
}

tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ add_executable(tests
3636
target_compile_features(tests PRIVATE cxx_std_17)
3737
target_compile_options(tests PRIVATE $<${IS_NOT_MSVC}:-Wall -Wextra -Werror>)
3838
target_link_options(tests PRIVATE $<$<AND:$<CONFIG:RELEASE>,${IS_NOT_MSVC}>:-s>)
39+
set_target_properties(tests PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE)
3940
# target_compile_options(tests PRIVATE $<${IS_MSVC}:/Wall /WX>)
4041
target_include_directories(tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../src)
4142
target_link_libraries(tests PRIVATE Boost::describe PRIVATE msgpack-cxx)

0 commit comments

Comments
 (0)