[PATCH] D45558: [test-suite] Save stats for LTO step too.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 25 08:47:43 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL330836: [test-suite] Save stats for LTO step too. (authored by fhahn, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D45558?vs=142942&id=143946#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D45558

Files:
  test-suite/trunk/CMakeLists.txt


Index: test-suite/trunk/CMakeLists.txt
===================================================================
--- test-suite/trunk/CMakeLists.txt
+++ test-suite/trunk/CMakeLists.txt
@@ -194,6 +194,11 @@
 if(TEST_SUITE_COLLECT_STATS)
   list(APPEND CFLAGS -save-stats=obj)
   list(APPEND CXXFLAGS -save-stats=obj)
+  # Collect stats for LTO step too.
+  if (${CMAKE_C_FLAGS} MATCHES ".*-flto.*" AND
+      ${CMAKE_CXX_FLAGS} MATCHES ".*-flto.*")
+    list(APPEND LDFLAGS -save-stats=obj)
+  endif()
 endif()
 
 # Detect and include subdirectories


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45558.143946.patch
Type: text/x-patch
Size: 543 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180425/57ebab5e/attachment.bin>


More information about the llvm-commits mailing list