Skip to content

Commit 00aca53

Browse files
[Flang-rt] Remove COMPILE_ONLY from flang-rt CMake file. (#169534)
COMPILE_ONLY was introduced in cmake 3.27.0. We cannot use this feature, because LLVM supports cmake 3.20.0.
1 parent 6459f39 commit 00aca53

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

flang-rt/cmake/modules/HandleLibs.cmake

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ elseif (FLANG_RT_LIBCXX_PROVIDER STREQUAL "llvm")
4545
endif ()
4646

4747
if (FLANG_RT_HAS_STDLIB_FLAG)
48-
target_compile_options(flang-rt-libc-headers INTERFACE
49-
$<$<COMPILE_LANGUAGE:CXX,C>:$<COMPILE_ONLY:-stdlib=libc++>>
50-
)
48+
target_compile_options(flang-rt-libc-headers INTERFACE $<$<COMPILE_LANGUAGE:CXX,C>:-stdlib=libc++>)
5149
endif ()
5250
endif ()

0 commit comments

Comments
 (0)