File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -218,6 +218,8 @@ function(create_libc_unittest fq_target_name)
218218
219219 _get_common_test_compile_options(compile_options "${LIBC_UNITTEST_C_TEST} "
220220 "${LIBC_UNITTEST_FLAGS} " )
221+ # TODO: Perhaps we should should we have a separate function for link options.
222+ set (link_options ${compile_options} )
221223 list (APPEND compile_options ${LIBC_UNITTEST_COMPILE_OPTIONS} )
222224
223225 if (SHOW_INTERMEDIATE_OBJECTS)
@@ -272,6 +274,7 @@ function(create_libc_unittest fq_target_name)
272274 target_include_directories (${fq_build_target_name} SYSTEM PRIVATE ${LIBC_INCLUDE_DIR} )
273275 target_include_directories (${fq_build_target_name} PRIVATE ${LIBC_SOURCE_DIR} )
274276 target_compile_options (${fq_build_target_name} PRIVATE ${compile_options} )
277+ target_link_options (${fq_build_target_name} PRIVATE ${compile_options} )
275278
276279 if (NOT LIBC_UNITTEST_CXX_STANDARD)
277280 set (LIBC_UNITTEST_CXX_STANDARD ${CMAKE_CXX_STANDARD} )
You can’t perform that action at this time.
0 commit comments