blob: 1967a4f7130ac3a52f0b85314be101b65c3f5ce8 [file] [log] [blame]
Stella Laurenzo3b44a0a2022-04-18 19:57:57 -07001# 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 Laurenzob61a9182024-03-18 12:52:22 -07007iree_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 Todd62efaee2024-05-31 13:33:55 -070020 "-DIREE_VM_EXT_F64_ENABLE=0"
Stella Laurenzob61a9182024-03-18 12:52:22 -070021)
22
Stella Laurenzo2eb68622023-11-10 17:04:46 -080023# Must include runtime plugins before processing the runtime sources so that
24# the static link list can be set.
25iree_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 Laurenzo9bde61b2022-04-21 15:37:14 -070034add_subdirectory(src)
35
Stella Laurenzo3b44a0a2022-04-18 19:57:57 -070036if(IREE_BUILD_PYTHON_BINDINGS)
Stella Laurenzob17a65e2022-05-09 21:15:19 -070037 add_subdirectory(bindings/python)
Stella Laurenzo3b44a0a2022-04-18 19:57:57 -070038endif()