[libc++] Use TARGET_FILE instead of TARGET_SONAME_FILE when generating ABI lists
authorLouis Dionne <ldionne.2@gmail.com>
Tue, 8 Dec 2020 17:15:44 +0000 (12:15 -0500)
committerLouis Dionne <ldionne.2@gmail.com>
Fri, 11 Dec 2020 17:12:40 +0000 (12:12 -0500)
TARGET_SONAME_FILE isn't valid on Windows, and TARGET_FILE should achieve
the same results.

Differential Revision: https://reviews.llvm.org/D92856

libcxx/lib/abi/CMakeLists.txt

index e25c09b..3d19c0b 100644 (file)
@@ -57,7 +57,7 @@ if (TARGET cxx_shared)
       "${Python3_EXECUTABLE}" "${LIBCXX_SOURCE_DIR}/utils/sym_diff.py"
           --only-stdlib-symbols
           --strict "${abi_list_file}"
-          $<TARGET_SONAME_FILE:cxx_shared>
+          $<TARGET_FILE:cxx_shared>
       DEPENDS cxx_shared
       COMMENT "Testing libc++'s exported symbols against the ABI list")
   else()
@@ -67,7 +67,7 @@ if (TARGET cxx_shared)
   add_custom_target(generate-cxx-abilist
     COMMAND "${Python3_EXECUTABLE}" "${LIBCXX_SOURCE_DIR}/utils/generate_abi_list.py"
             --output "${abi_list_file}"
-            "$<TARGET_SONAME_FILE:cxx_shared>"
+            "$<TARGET_FILE:cxx_shared>"
     DEPENDS cxx_shared
     COMMENT "Generating the ABI list file for configuration ${abi_list_identifier}")
 else()