[libcxx-commits] [libcxx] r374120 - [libc++] Workaround old versions of CMake that don't understand list(JOIN)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Oct 8 14:33:35 PDT 2019


Author: ldionne
Date: Tue Oct  8 14:33:35 2019
New Revision: 374120

URL: http://llvm.org/viewvc/llvm-project?rev=374120&view=rev
Log:
[libc++] Workaround old versions of CMake that don't understand list(JOIN)

Modified:
    libcxx/trunk/cmake/Modules/DefineLinkerScript.cmake

Modified: libcxx/trunk/cmake/Modules/DefineLinkerScript.cmake
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/cmake/Modules/DefineLinkerScript.cmake?rev=374120&r1=374119&r2=374120&view=diff
==============================================================================
--- libcxx/trunk/cmake/Modules/DefineLinkerScript.cmake (original)
+++ libcxx/trunk/cmake/Modules/DefineLinkerScript.cmake Tue Oct  8 14:33:35 2019
@@ -38,7 +38,7 @@ function(define_linker_script target)
       endif()
     endforeach()
   endif()
-  list(JOIN link_libraries " " link_libraries)
+  string(REPLACE ";" " " link_libraries "${link_libraries}")
 
   set(linker_script "INPUT(${soname} ${link_libraries})")
   add_custom_command(TARGET "${target}" POST_BUILD




More information about the libcxx-commits mailing list