]> granicus.if.org Git - llvm/commitdiff
[CMake] Add more runtime configurations.
authorLeo Li <aoli@google.com>
Fri, 1 Sep 2017 01:05:59 +0000 (01:05 +0000)
committerLeo Li <aoli@google.com>
Fri, 1 Sep 2017 01:05:59 +0000 (01:05 +0000)
Summary:
- `project` is required when `runtime/CMakeList.txt` is the top-level `CMakeList.txt` file. This will establish version and policy settings.

- `-D_FILE_OFFSET_BITS=64` should never be set for Android runtimes.

Reviewers: srhines, pirama, beanz

Subscribers: llvm-commits, srhines, mgorny

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312302 91177308-0d34-0410-b5e6-96231b3b80d8

runtimes/CMakeLists.txt

index 07d5cd3d682edeb9e2d5928c9389f9438a4c039a..9ae755361ed8c13828c7da8a86018c40f68decee 100644 (file)
@@ -24,6 +24,7 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
   endfunction()
 
   cmake_minimum_required(VERSION 3.4.3)
+  project(Runtimes C CXX ASM)
 
   # Add the root project's CMake modules, and the LLVM build's modules to the
   # CMake module path.