Stella Laurenzo | 3b44a0a | 2022-04-18 19:57:57 -0700 | [diff] [blame] | 1 | # Copyright 2022 The IREE Authors |
| 2 | # |
| 3 | # Licensed under the Apache License v2.0 with LLVM Exceptions. |
| 4 | # See https://llvm.org/LICENSE.txt for license information. |
| 5 | # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | |
Stella Laurenzo | b61a918 | 2024-03-18 12:52:22 -0700 | [diff] [blame] | 7 | iree_enable_optimization_options( |
| 8 | PROFILE_NAME |
| 9 | "${IREE_RUNTIME_OPTIMIZATION_PROFILE}" |
| 10 | # TODO: These options should be separated between those required as |
| 11 | # INTERFACE and those that can be private (i.e. to the runtime). |
| 12 | SIZE_INTERFACE_COPTS |
| 13 | "-DIREE_STATUS_MODE=0" |
| 14 | "-DIREE_STATISTICS_ENABLE=0" |
| 15 | "-DIREE_HAL_MODULE_STRING_UTIL_ENABLE=0" |
| 16 | "-DIREE_HAL_COMMAND_BUFFER_VALIDATION_ENABLE=0" |
| 17 | "-DIREE_VM_BACKTRACE_ENABLE=0" |
| 18 | "-DIREE_VM_BYTECODE_VERIFICATION_ENABLE=0" |
| 19 | "-DIREE_VM_EXT_F32_ENABLE=0" |
Scott Todd | 62efaee | 2024-05-31 13:33:55 -0700 | [diff] [blame] | 20 | "-DIREE_VM_EXT_F64_ENABLE=0" |
Stella Laurenzo | b61a918 | 2024-03-18 12:52:22 -0700 | [diff] [blame] | 21 | ) |
| 22 | |
Stella Laurenzo | 2eb6862 | 2023-11-10 17:04:46 -0800 | [diff] [blame] | 23 | # Must include runtime plugins before processing the runtime sources so that |
| 24 | # the static link list can be set. |
| 25 | iree_include_cmake_plugin_dirs( |
| 26 | LOG_LABEL |
| 27 | runtime |
| 28 | BINARY_DIR |
| 29 | "${IREE_BINARY_DIR}/runtime/plugins" |
| 30 | PLUGIN_CMAKE_FILE |
| 31 | "iree_runtime_plugin.cmake" |
| 32 | ) |
| 33 | |
Stella Laurenzo | 9bde61b | 2022-04-21 15:37:14 -0700 | [diff] [blame] | 34 | add_subdirectory(src) |
| 35 | |
Stella Laurenzo | 3b44a0a | 2022-04-18 19:57:57 -0700 | [diff] [blame] | 36 | if(IREE_BUILD_PYTHON_BINDINGS) |
Stella Laurenzo | b17a65e | 2022-05-09 21:15:19 -0700 | [diff] [blame] | 37 | add_subdirectory(bindings/python) |
Stella Laurenzo | 3b44a0a | 2022-04-18 19:57:57 -0700 | [diff] [blame] | 38 | endif() |