[CMake] Specify byproducts for custom libcxx builds
authorPetr Hosek <phosek@google.com>
Wed, 8 Dec 2021 07:06:12 +0000 (23:06 -0800)
committerPetr Hosek <phosek@google.com>
Wed, 8 Dec 2021 07:14:58 +0000 (23:14 -0800)
These were removed in bda3f2dd763b06427dd2713aa062e356c9d7bdc6 but
are needed as it turned out for the MSan tests.

compiler-rt/cmake/Modules/AddCompilerRT.cmake

index 958c927..1244f35 100644 (file)
@@ -654,6 +654,7 @@ macro(add_custom_libcxx name prefix)
     USES_TERMINAL_INSTALL 1
     LIST_SEPARATOR |
     EXCLUDE_FROM_ALL TRUE
+    BUILD_BYPRODUCTS "${prefix}/lib/libc++.a" "${prefix}/lib/libc++abi.a"
     )
 
   if (CMAKE_GENERATOR MATCHES "Make")