Revert "[ARM][TypePromotion] Enable by default"
[lldb.git] / libc / CMakeLists.txt
1 cmake_minimum_required(VERSION 3.4.3)
2
3 list(APPEND CMAKE_MODULE_PATH  "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
4
5 # The top-level source directory of libc.
6 set(LIBC_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
7 # The top-level directory in which libc is being built.
8 set(LIBC_BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR})
9
10 # Path libc/scripts directory.
11 set(LIBC_BUILD_SCRIPTS_DIR "${LIBC_SOURCE_DIR}/utils/build_scripts")
12
13
14 set(LIBC_TARGET_OS ${CMAKE_SYSTEM_NAME})
15 string(TOLOWER ${LIBC_TARGET_OS} LIBC_TARGET_OS)
16
17 set(LIBC_TARGET_MACHINE ${CMAKE_SYSTEM_PROCESSOR})
18
19 include(CMakeParseArguments)
20 include(LLVMLibCRules)
21
22 add_subdirectory(include)
23 add_subdirectory(src)
24 add_subdirectory(lib)
25 add_subdirectory(utils)