Skip to content

Commit 0ca085c

Browse files
committed
Avoid applying compile options to the linker
Compile options aren't the same as link options and on some platforms like Windows where the linker is invoked directly they're distinctly different.
1 parent 150f6a5 commit 0ca085c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

libc/cmake/modules/LLVMLibCTestRules.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,6 @@ function(create_libc_unittest fq_target_name)
272272
target_include_directories(${fq_build_target_name} SYSTEM PRIVATE ${LIBC_INCLUDE_DIR})
273273
target_include_directories(${fq_build_target_name} PRIVATE ${LIBC_SOURCE_DIR})
274274
target_compile_options(${fq_build_target_name} PRIVATE ${compile_options})
275-
target_link_options(${fq_build_target_name} PRIVATE ${compile_options})
276275

277276
if(NOT LIBC_UNITTEST_CXX_STANDARD)
278277
set(LIBC_UNITTEST_CXX_STANDARD ${CMAKE_CXX_STANDARD})

0 commit comments

Comments
 (0)