File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -127,12 +127,12 @@ function (add_flangrt_library name)
127
127
# dependency to Compiler-RT's builtin library where these are implemented.
128
128
if (MSVC AND CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
129
129
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} > " )
131
131
endif ()
132
132
endif ()
133
133
if (MSVC AND CMAKE_Fortran_COMPILER_ID STREQUAL "LLVMFlang" )
134
134
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} > " )
136
136
else ()
137
137
message (WARNING "Did not find libclang_rt.builtins.lib.
138
138
LLVM may emit builtins that are not implemented in msvcrt/ucrt and
You can’t perform that action at this time.
0 commit comments