Skip to content

Commit 3e3cc42

Browse files
committed
Post-merge fixes
1 parent ddd1ce6 commit 3e3cc42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flang-rt/cmake/modules/AddFlangRT.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,12 @@ function (add_flangrt_library name)
127127
# dependency to Compiler-RT's builtin library where these are implemented.
128128
if (MSVC AND CMAKE_CXX_COMPILER_ID MATCHES "Clang")
129129
if (FLANG_RT_BUILTINS_LIBRARY)
130-
target_compile_options(${name} PRIVATE "$<$<COMPILE_LANGUAGE:CXX,C>:-Xclang>" "--dependent-lib=${FLANG_RT_BUILTINS_LIBRARY}")
130+
target_compile_options(${name} PRIVATE "$<$<COMPILE_LANGUAGE:CXX,C>:-Xclang>" "$<$<COMPILE_LANGUAGE:CXX,C>:--dependent-lib=${FLANG_RT_BUILTINS_LIBRARY}>")
131131
endif ()
132132
endif ()
133133
if (MSVC AND CMAKE_Fortran_COMPILER_ID STREQUAL "LLVMFlang")
134134
if (FLANG_RT_BUILTINS_LIBRARY)
135-
target_compile_options(${name} PRIVATE "$<$<COMPILE_LANGUAGE:Fortran>:-Xflang>" "--dependent-lib=${FLANG_RT_BUILTINS_LIBRARY}")
135+
target_compile_options(${name} PRIVATE "$<$<COMPILE_LANGUAGE:Fortran>:-Xflang>" "$<$<COMPILE_LANGUAGE:Fortran>:--dependent-lib=${FLANG_RT_BUILTINS_LIBRARY}>")
136136
else ()
137137
message(WARNING "Did not find libclang_rt.builtins.lib.
138138
LLVM may emit builtins that are not implemented in msvcrt/ucrt and

0 commit comments

Comments
 (0)