mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
build: enable unit testing on release builds (#22554)
Unittests not working on release builds can lead to confusing situations, such as contributors wondering why their tests aren't working if they forgot they've built with a release build. This only increased the Release executable size by 8 kB on my personal machine, which is an acceptable tradeoff.
This commit is contained in:
parent
1cc23e1109
commit
6aa5346b04
@ -626,8 +626,8 @@ if(PREFER_LUA)
|
||||
message(STATUS "luajit not used, skipping unit tests")
|
||||
else()
|
||||
glob_wrapper(UNIT_TEST_FIXTURES ${PROJECT_SOURCE_DIR}/test/unit/fixtures/*.c)
|
||||
target_sources(nvim PRIVATE $<$<CONFIG:Debug>:${UNIT_TEST_FIXTURES}>)
|
||||
target_compile_definitions(nvim PRIVATE $<$<CONFIG:Debug>:UNIT_TESTING>)
|
||||
target_sources(nvim PRIVATE ${UNIT_TEST_FIXTURES})
|
||||
target_compile_definitions(nvim PRIVATE UNIT_TESTING)
|
||||
endif()
|
||||
|
||||
target_sources(main_lib INTERFACE
|
||||
|
Loading…
Reference in New Issue
Block a user