[test-suite] r341263 - Update docu link; Add the O0 + O3 cmake cache

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 31 15:09:58 PDT 2018


Author: matze
Date: Fri Aug 31 15:09:57 2018
New Revision: 341263

URL: http://llvm.org/viewvc/llvm-project?rev=341263&view=rev
Log:
Update docu link; Add the O0 + O3 cmake cache

The O3 cache was mentioned in example in the docu, so we should make
sure it actually exists :)

Added:
    test-suite/trunk/cmake/caches/O0.cmake
    test-suite/trunk/cmake/caches/O3.cmake
Modified:
    test-suite/trunk/README.txt

Modified: test-suite/trunk/README.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/README.txt?rev=341263&r1=341262&r2=341263&view=diff
==============================================================================
--- test-suite/trunk/README.txt (original)
+++ test-suite/trunk/README.txt Fri Aug 31 15:09:57 2018
@@ -3,6 +3,6 @@ LLVM "test-suite" Repository
 
 Please see the LLVM testing infrastructure guide:
 
-  http://llvm.org/docs/TestingGuide.html
+  https://llvm.org/docs/TestSuiteGuide.html
 
 for more information on the contents of this repository.

Added: test-suite/trunk/cmake/caches/O0.cmake
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/cmake/caches/O0.cmake?rev=341263&view=auto
==============================================================================
--- test-suite/trunk/cmake/caches/O0.cmake (added)
+++ test-suite/trunk/cmake/caches/O0.cmake Fri Aug 31 15:09:57 2018
@@ -0,0 +1,5 @@
+# Lowest optimization level and maximum debug information; A typical developer
+# configuration.
+set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "")
+set(CMAKE_C_FLAGS_DEBUG "-O0" CACHE STRING "")
+set(CMAKE_CXX_FLAGS_DEBUG "-O0" CACHE STRING "")

Added: test-suite/trunk/cmake/caches/O3.cmake
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/cmake/caches/O3.cmake?rev=341263&view=auto
==============================================================================
--- test-suite/trunk/cmake/caches/O3.cmake (added)
+++ test-suite/trunk/cmake/caches/O3.cmake Fri Aug 31 15:09:57 2018
@@ -0,0 +1,5 @@
+set(OPTFLAGS "${OPTFLAGS} -O3")
+
+set(CMAKE_C_FLAGS_RELEASE "${OPTFLAGS}" CACHE STRING "")
+set(CMAKE_CXX_FLAGS_RELEASE "${OPTFLAGS}" CACHE STRING "")
+set(CMAKE_BUILD_TYPE "Release" CACHE STRING "")




More information about the llvm-commits mailing list