blob: 9e2c20f8098d49506d6cc51815943c8bb2712ca7 [file] [log] [blame]
Geoffrey Martin-Noble552d3f82021-05-25 17:56:09 -07001# Copyright 2019 The IREE Authors
Ben Vanik512d2d32019-09-20 13:22:34 -07002#
Geoffrey Martin-Noble552d3f82021-05-25 17:56:09 -07003# 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
Ben Vanik6b112ef2019-10-03 10:45:14 -07006
Stella Laurenzobe0f1e12023-04-03 13:34:38 -07007# Special case package namespace for tools/ -> "" (empty string)
8# For example, tools/iree-compile -> iree-compile (no namespace)
9set(IREE_PACKAGE_ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}")
10
Scott Todd44f95f82022-06-01 09:59:32 -070011# Tools IREE provides for compiling, executing, and benchmarking programs, as
12# well as other utilities.
13#
14# Only binary targets and their associated main files should go in this
15# directory. Library targets and header files should be placed in the
16# appropriate subtree, e.g. `compiler/src/iree/compiler/Tools/`.
17#
Scott Todd20d746a2023-01-12 09:11:59 -080018# Compiler tools are designed to run on host platforms (Linux, macOS, Windows),
19# so they are only built when IREE_BUILD_COMPILER is set and are tagged
20# "hostonly". When cross-compiling (or generally wanting to use already-built
Scott Toddde426de2023-01-13 08:26:02 -080021# compiler tools), set the IREE_HOST_BIN_DIR CMake option.
Scott Todd44f95f82022-06-01 09:59:32 -070022#
23# This file does not use bazel_to_cmake because of special logic throughout.
Scott Todd6132bb32020-08-11 12:04:40 -070024
Scott Todd20d746a2023-01-12 09:11:59 -080025# Write some important CMake options to a file for convenient use from scripts.
26configure_file(build_config_template.txt.in build_config.txt)
27
Stella Laurenzo863d3022024-01-13 15:20:16 -100028# If cross-compiling and not building the compiler, then attempt to find
29# the compiler tools.
30# This is actual broken because the situation is tri-state:
31# 1. Cross-compiling with no built compiler: Should work the same as
32# IREE_BUILD_COMPILER=OFF in a host build (i.e. nothing depending
33# on the compiler should be built).
34# 2. Cross-compiling with a compiler built for the target: Anything
35# on the host which needs the compiler, still must have host tools.
36# 3. Normal host build.
37# This simplistic setup makes #2 impossible and it overloads #1 to
38# also support building things that depend on the compiler. The targets
39# need to be aliased/forked for host variants to fully support. For now
40# we just make all of these as OPTIONAL and let things break if not set up
41# right.
Scott Toddde426de2023-01-13 08:26:02 -080042if(IREE_HOST_BIN_DIR AND NOT IREE_BUILD_COMPILER)
Stella Laurenzo863d3022024-01-13 15:20:16 -100043 iree_import_binary(NAME iree-tblgen OPTIONAL)
44 iree_import_binary(NAME iree-compile OPTIONAL)
45 iree_import_binary(NAME iree-opt OPTIONAL)
46 iree_import_binary(NAME iree-run-mlir OPTIONAL)
Scott Todd315e2382024-01-30 13:35:51 -080047 iree_import_binary(NAME FileCheck OPTIONAL)
48 iree_import_binary(NAME not OPTIONAL)
Stella Laurenzo863d3022024-01-13 15:20:16 -100049 iree_import_binary(NAME clang OPTIONAL)
50 iree_import_binary(NAME llvm-link OPTIONAL)
Scott Todd20d746a2023-01-12 09:11:59 -080051endif()
52
Scott Todd315e2382024-01-30 13:35:51 -080053# For sub-directories, we want targets fully qualified relative to the
54# root. But after, we want those in *this* directory to be unqualified
55# (i.e. 'iree-compile').
56set(IREE_PACKAGE_ROOT_PREFIX "iree/tools")
57iree_add_all_subdirs()
58set(IREE_PACKAGE_ROOT_PREFIX "")
59
Scott Todd4c022df2022-05-10 16:55:18 -070060# TODO(#6353): Tools has thread dependencies in gtest, benchmark, yaml, etc.
61# This should be split between runtime/compiler with optional threading support.
Scott Todde93f0ee2022-05-03 12:06:29 -070062if(NOT IREE_ENABLE_THREADING)
Cindy Liu331946c2021-06-01 12:20:30 -070063 return()
64endif()
65
Geoffrey Martin-Noble34190262020-02-06 10:43:58 -080066iree_cc_binary(
67 NAME
Ben Vanik23f28282024-02-23 11:14:25 -080068 iree-benchmark-executable
69 SRCS
70 "iree-benchmark-executable-main.c"
71 DEPS
72 iree::base
73 iree::base::internal::flags
74 iree::hal
75 iree::modules::hal::types
76 iree::testing::benchmark
77 iree::tooling::device_util
78 iree::tooling::function_io
79 iree::vm
80 INSTALL_COMPONENT IREETools-Runtime
81)
82
83iree_cc_binary(
84 NAME
Geoffrey Martin-Noble34190262020-02-06 10:43:58 -080085 iree-benchmark-module
Geoffrey Martin-Noble34190262020-02-06 10:43:58 -080086 SRCS
Geoffrey Martin-Noble0a6b9cc2020-09-22 20:17:05 -070087 "iree-benchmark-module-main.cc"
Geoffrey Martin-Noble34190262020-02-06 10:43:58 -080088 DEPS
Geoffrey Martin-Noble34190262020-02-06 10:43:58 -080089 benchmark
Ben Vanik931a3b12021-05-20 13:27:13 -070090 iree::base
Ben Vanike28d2532021-02-03 13:44:24 -080091 iree::base::internal::flags
Ben Vanik931a3b12021-05-20 13:27:13 -070092 iree::hal
Ben Vanike9ae9632022-10-04 08:13:30 -070093 iree::modules::hal::types
Ben Vanik007109f2022-08-03 07:26:50 -070094 iree::tooling::context_util
Ben Vanik097d8262022-06-09 11:35:04 -070095 iree::tooling::device_util
Ben Vanik30901f52024-02-08 11:23:21 -080096 iree::tooling::function_io
Ben Vanike8a9ec42020-07-16 22:04:57 -070097 iree::vm
Ben Vanikac94b2a2024-01-17 07:22:06 -080098 INSTALL_COMPONENT IREETools-Runtime
Ben Vanik50e46cd2021-06-28 10:19:35 -070099)
100
101iree_cc_binary(
102 NAME
inho9606995d0b72021-01-05 17:07:16 +0900103 iree-check-module
inho9606995d0b72021-01-05 17:07:16 +0900104 SRCS
105 "iree-check-module-main.cc"
106 DEPS
Ben Vanik7c2d3102021-04-30 10:32:55 -0700107 iree::base
Ben Vanik5507c6e2021-02-02 21:27:08 -0800108 iree::base::internal::file_io
Ben Vanike28d2532021-02-03 13:44:24 -0800109 iree::base::internal::flags
Ben Vanik931a3b12021-05-20 13:27:13 -0700110 iree::hal
Ben Vanikd2f24f02021-06-21 09:13:53 -0700111 iree::modules::check
inho9606995d0b72021-01-05 17:07:16 +0900112 iree::testing::gtest
Ben Vanikbcec0b52022-08-06 08:45:46 -0700113 iree::tooling::context_util
Ben Vanik7859d632022-10-24 14:37:28 -0700114 iree::tooling::device_util
Ben Vanik931a3b12021-05-20 13:27:13 -0700115 iree::vm
Ben Vanikcf49d692023-02-24 20:24:09 -0800116 iree::vm::bytecode::module
inho9606995d0b72021-01-05 17:07:16 +0900117 TESTONLY
118)
119
120iree_cc_binary(
121 NAME
Ben Vanikfce839f2023-11-28 17:12:58 -0800122 iree-convert-parameters
123 SRCS
124 "iree-convert-parameters-main.c"
125 DEPS
126 iree::base
127 iree::base::internal::file_io
128 iree::base::internal::flags
129 iree::hal
130 iree::io::formats::irpa
131 iree::io::parameter_index
132 iree::io::scope_map
133 iree::tooling::parameter_util
Ben Vanikac94b2a2024-01-17 07:22:06 -0800134 INSTALL_COMPONENT IREETools-Runtime
Ben Vanikfce839f2023-11-28 17:12:58 -0800135)
136
137iree_cc_binary(
138 NAME
Ben Vanik0635b092023-03-28 13:03:38 -0700139 iree-cpuinfo
140 SRCS
141 "iree-cpuinfo.c"
142 DEPS
143 iree::base
144 iree::base::internal::cpu
145 iree::schemas::cpu_data
Ben Vanikac94b2a2024-01-17 07:22:06 -0800146 INSTALL_COMPONENT IREETools-Runtime
Ben Vanik0635b092023-03-28 13:03:38 -0700147)
148
149iree_cc_binary(
150 NAME
Ben Vanikfce839f2023-11-28 17:12:58 -0800151 iree-create-parameters
152 SRCS
153 "iree-create-parameters-main.c"
154 DEPS
155 iree::base
156 iree::base::internal::file_io
157 iree::base::internal::flags
158 iree::hal
159 iree::io::formats::irpa
160 iree::io::parameter_index
161 iree::io::scope_map
162 iree::io::stream
Ben Vanikac94b2a2024-01-17 07:22:06 -0800163 INSTALL_COMPONENT IREETools-Runtime
Ben Vanikfce839f2023-11-28 17:12:58 -0800164)
165
166iree_cc_binary(
167 NAME
Ben Vanikc319c2d2023-02-24 18:18:47 -0800168 iree-dump-instruments
169 SRCS
170 "iree-dump-instruments-main.c"
171 DEPS
172 flatcc::runtime
173 iree::base
174 iree::base::internal::file_io
175 iree::base::internal::flatcc::parsing
176 iree::schemas::instruments
177 iree::schemas::instruments::dispatch_def_c_fbs
Ben Vanikac94b2a2024-01-17 07:22:06 -0800178 INSTALL_COMPONENT IREETools-Runtime
Ben Vanikc319c2d2023-02-24 18:18:47 -0800179)
180
181iree_cc_binary(
182 NAME
Ben Vanikef13fb62020-02-29 08:49:03 -0800183 iree-dump-module
184 SRCS
Ben Vanik35bc9a12022-03-09 09:05:58 -0800185 "iree-dump-module-main.c"
Ben Vanikef13fb62020-02-29 08:49:03 -0800186 DEPS
Ben Vanik7b8e9f72020-11-20 17:37:51 -0800187 flatcc::runtime
Ben Vanik931a3b12021-05-20 13:27:13 -0700188 iree::base
Ben Vanik5507c6e2021-02-02 21:27:08 -0800189 iree::base::internal::file_io
Ben Vanik163547a2023-05-15 11:59:13 -0700190 iree::base::internal::flags
Ben Vanikb998f1f2021-09-16 09:50:12 -0700191 iree::base::internal::flatcc::debugging
Ben Vanik163547a2023-05-15 11:59:13 -0700192 iree::base::internal::flatcc::parsing
Ben Vanikbc685ed2020-11-14 17:09:46 -0800193 iree::schemas::bytecode_module_def_c_fbs
Ben Vanikcf49d692023-02-24 20:24:09 -0800194 iree::vm::bytecode::module
Ben Vanikac94b2a2024-01-17 07:22:06 -0800195 INSTALL_COMPONENT IREETools-Runtime
Ben Vanikef13fb62020-02-29 08:49:03 -0800196)
197
Ben Vanik11ced0c2023-11-03 14:24:08 -0700198iree_cc_binary(
199 NAME
200 iree-dump-parameters
201 SRCS
202 "iree-dump-parameters-main.c"
203 DEPS
204 iree::base
205 iree::base::internal::file_io
206 iree::base::internal::flags
207 iree::io::parameter_index
208 iree::io::scope_map
209 iree::tooling::parameter_util
Ben Vanikac94b2a2024-01-17 07:22:06 -0800210 INSTALL_COMPONENT IREETools-Runtime
Ben Vanik11ced0c2023-11-03 14:24:08 -0700211)
212
Ben Vanik0635b092023-03-28 13:03:38 -0700213# Only enable fatelf tool when we're compiling it in.
214# Currently it requires that the host and target both support embedded ELFs as
215# the ELF implementation is only compiled when the target supports it.
Ben Vanike19fc8e2023-04-14 16:08:01 -0700216if(IREE_HAL_EXECUTABLE_LOADER_EMBEDDED_ELF OR
217 IREE_HAL_EXECUTABLE_PLUGIN_EMBEDDED_ELF)
Ben Vanik0635b092023-03-28 13:03:38 -0700218iree_cc_binary(
219 NAME
220 iree-fatelf
221 SRCS
222 "iree-fatelf.c"
223 DEPS
224 iree::base
225 iree::base::internal::file_io
226 iree::base::internal::path
227 iree::hal::local::elf::elf_module
Ben Vanikac94b2a2024-01-17 07:22:06 -0800228 INSTALL_COMPONENT IREETools-Runtime
Ben Vanik0635b092023-03-28 13:03:38 -0700229)
230endif() # IREE_HAL_EXECUTABLE_*_EMBEDDED_ELF
231
Marius Brehler0c0cd9f2020-03-05 15:35:02 -0800232iree_cc_binary(
233 NAME
234 iree-run-module
Ben Vanikef13fb62020-02-29 08:49:03 -0800235 SRCS
Stella Laurenzod318c542023-04-27 17:08:22 -0700236 "iree-run-module-main.c"
Ben Vanikef13fb62020-02-29 08:49:03 -0800237 DEPS
Ben Vanikabe6c762021-06-27 21:57:07 -0700238 iree::base
Ben Vanike28d2532021-02-03 13:44:24 -0800239 iree::base::internal::flags
Ben Vanik007109f2022-08-03 07:26:50 -0700240 iree::hal
241 iree::tooling::context_util
Stella Laurenzod318c542023-04-27 17:08:22 -0700242 iree::tooling::run_module
Ben Vanikabe6c762021-06-27 21:57:07 -0700243 iree::vm
Stella Laurenzo15c306f2023-12-28 19:03:20 -0800244 INSTALL_COMPONENT IREETools-Runtime
Ben Vanikabe6c762021-06-27 21:57:07 -0700245)
246
Scott Todd1a1aea62022-04-28 09:12:11 -0700247if(IREE_BUILD_COMPILER)
CindyLiuae9b2c02023-08-23 09:44:40 -0700248 if(IREE_LLVM_LINK_TARGET)
249 install(
250 TARGETS llvm-link
Stella Laurenzo15c306f2023-12-28 19:03:20 -0800251 COMPONENT IREETools-CompilerExtra
CindyLiuae9b2c02023-08-23 09:44:40 -0700252 RUNTIME DESTINATION bin
253 )
254 endif()
255
256 if(IREE_CLANG_TARGET)
257 install(
258 TARGETS clang
Stella Laurenzo15c306f2023-12-28 19:03:20 -0800259 COMPONENT IREETools-CompilerExtra
CindyLiuae9b2c02023-08-23 09:44:40 -0700260 RUNTIME DESTINATION bin
261 )
262 endif()
263
Scott Todd315e2382024-01-30 13:35:51 -0800264 if(IREE_FILECHECK_TARGET)
265 install(
266 TARGETS FileCheck
267 COMPONENT IREETools-CompilerDev
268 RUNTIME DESTINATION bin
269 )
270 endif()
271
272 if(IREE_NOT_TARGET)
273 install(
274 TARGETS not
275 COMPONENT IREETools-CompilerDev
276 RUNTIME DESTINATION bin
277 )
278 endif()
279
Stella Laurenzoae708152023-06-22 21:51:59 -0700280 # Tablegen binaries are special snowflakes among special snowflakes.
281 # They must be statically linked against internal LLVM libraries, and they
282 # therefore must not depend on anything outside of the upstream tablegen
283 # libraries. These targets are specially set up to link in the correct
284 # way. This is a necessary diversion from how Bazel deals with it (which
285 # must deep-link to everything to satisfy its checks).
Marius Brehler1d617e32020-03-06 15:26:33 -0800286 iree_cc_binary(
287 NAME
288 iree-tblgen
289 SRCS
Stella Laurenzoae708152023-06-22 21:51:59 -0700290 "iree-tblgen.cpp"
Stella Laurenzo41a2ceb2022-04-29 12:49:36 -0700291 "${IREE_SOURCE_DIR}/compiler/src/iree/compiler/Dialect/VM/Tools/VMOpEncoderGen.cpp"
292 "${IREE_SOURCE_DIR}/compiler/src/iree/compiler/Dialect/VM/Tools/VMOpTableGen.cpp"
Marius Brehler1d617e32020-03-06 15:26:33 -0800293 DEPS
Oleksandr "Alex" Zinenko7b28a412023-06-29 22:06:18 +0200294 LLVMSupport
Thomas4c2029f2022-08-15 19:20:14 -0700295 MLIRTblgenLib
Lei Zhang0d281b72020-06-01 20:00:23 -0400296 HOSTONLY
Oleksandr "Alex" Zinenko7b28a412023-06-29 22:06:18 +0200297 DISABLE_LLVM_LINK_LLVM_DYLIB
Stella Laurenzo15c306f2023-12-28 19:03:20 -0800298 INSTALL_COMPONENT IREETools-CompilerDev
Marius Brehler1d617e32020-03-06 15:26:33 -0800299 )
Stella Laurenzo06034152020-01-03 11:26:31 -0800300
Marius Brehler1d617e32020-03-06 15:26:33 -0800301 iree_cc_binary(
302 NAME
Stella Laurenzo7f2972c2022-03-19 14:09:43 -0700303 iree-compile
Stella Laurenzoae1c3a22022-03-17 11:17:58 -0700304 SRCS
Stella Laurenzo7f2972c2022-03-19 14:09:43 -0700305 "iree-compile-main.cc"
Stella Laurenzoae1c3a22022-03-17 11:17:58 -0700306 DEPS
Stella Laurenzo309dc5b2023-02-22 23:07:43 -0800307 iree::compiler::bindings::c::headers
Stella Laurenzo6dd9de82023-03-07 19:02:25 -0800308 iree::compiler::API::Impl
Stella Laurenzoae1c3a22022-03-17 11:17:58 -0700309 DATA
310 ${IREE_LLD_TARGET}
311 HOSTONLY
Stella Laurenzo7ec09ce2022-11-24 11:13:52 -0800312 SETUP_INSTALL_RPATH
Stella Laurenzo15c306f2023-12-28 19:03:20 -0800313 INSTALL_COMPONENT IREETools-Compiler
Stella Laurenzoae1c3a22022-03-17 11:17:58 -0700314 )
315
Scott Todd44f95f82022-06-01 09:59:32 -0700316 iree_cc_binary(
Scott Todd1f1ef562022-05-10 08:47:32 -0700317 NAME
Kunwar Grover60a25662023-09-29 03:30:21 +0530318 iree-reduce
319 SRCS
320 "iree-reduce.cc"
321 DEPS
322 iree::compiler::bindings::c::headers
323 iree::compiler::API::Impl
324 DATA
325 ${IREE_LLD_TARGET}
326 HOSTONLY
327 SETUP_INSTALL_RPATH
Stella Laurenzo15c306f2023-12-28 19:03:20 -0800328 INSTALL_COMPONENT IREETools-Compiler
Kunwar Grover60a25662023-09-29 03:30:21 +0530329 )
330
Stella Laurenzo15c306f2023-12-28 19:03:20 -0800331 # Only build IREE's busybox lld if the backing LLVM has LLD enabled.
332 # Otherwise, it will build but fail at runtime saying that it is not
333 # supported, and this fouls up tools search heuristics.
334 if(IREE_LLD_TARGET)
335 iree_cc_binary(
336 NAME
337 iree-lld
338 SRCS
339 "iree-lld-main.cc"
340 DEPS
341 iree::compiler::bindings::c::headers
342 iree::compiler::API::Impl
343 HOSTONLY
344 SETUP_INSTALL_RPATH
345 INSTALL_COMPONENT IREETools-Compiler
346 )
347 endif()
348
Kunwar Grover60a25662023-09-29 03:30:21 +0530349 iree_cc_binary(
350 NAME
Scott Todd44f95f82022-06-01 09:59:32 -0700351 iree-opt
Scott Todd1f1ef562022-05-10 08:47:32 -0700352 SRCS
353 "iree-opt-main.cc"
354 DEPS
Stella Laurenzo309dc5b2023-02-22 23:07:43 -0800355 iree::compiler::bindings::c::headers
Stella Laurenzo6dd9de82023-03-07 19:02:25 -0800356 iree::compiler::API::Impl
Ben Vanikb189c6e2021-06-18 13:19:15 -0700357 DATA
Stella Laurenzo74b04b72022-03-02 10:21:11 -0800358 ${IREE_LLD_TARGET}
Lei Zhang0d281b72020-06-01 20:00:23 -0400359 HOSTONLY
Stella Laurenzo7ec09ce2022-11-24 11:13:52 -0800360 SETUP_INSTALL_RPATH
Stella Laurenzo15c306f2023-12-28 19:03:20 -0800361 INSTALL_COMPONENT IREETools-Compiler
Marius Brehler1d617e32020-03-06 15:26:33 -0800362 )
Marius Brehler0c0cd9f2020-03-05 15:35:02 -0800363
Marius Brehler1d617e32020-03-06 15:26:33 -0800364 iree_cc_binary(
365 NAME
Scott Todd111be2e2021-06-10 12:56:53 -0700366 iree-mlir-lsp-server
367 SRCS
368 "iree-mlir-lsp-server.cc"
369 DEPS
Stella Laurenzo309dc5b2023-02-22 23:07:43 -0800370 iree::compiler::bindings::c::headers
Stella Laurenzo6dd9de82023-03-07 19:02:25 -0800371 iree::compiler::API::Impl
Stella Laurenzo7ec09ce2022-11-24 11:13:52 -0800372 SETUP_INSTALL_RPATH
Stella Laurenzo15c306f2023-12-28 19:03:20 -0800373 INSTALL_COMPONENT IREETools-Compiler
Scott Todd111be2e2021-06-10 12:56:53 -0700374 )
375
376 iree_cc_binary(
377 NAME
Marius Brehler1d617e32020-03-06 15:26:33 -0800378 iree-run-mlir
Marius Brehler1d617e32020-03-06 15:26:33 -0800379 SRCS
Geoffrey Martin-Noble0a6b9cc2020-09-22 20:17:05 -0700380 "iree-run-mlir-main.cc"
Marius Brehler1d617e32020-03-06 15:26:33 -0800381 DEPS
Ben Vanik7c2d3102021-04-30 10:32:55 -0700382 iree::base
Ben Vanike28d2532021-02-03 13:44:24 -0800383 iree::base::internal::flags
Stella Laurenzod318c542023-04-27 17:08:22 -0700384 iree::compiler::bindings::c::headers
385 iree::compiler::API::Impl
Ben Vanik193c7602021-04-30 10:29:15 -0700386 iree::hal
Ben Vanik007109f2022-08-03 07:26:50 -0700387 iree::tooling::context_util
Ben Vanik097d8262022-06-09 11:35:04 -0700388 iree::tooling::device_util
Stella Laurenzod318c542023-04-27 17:08:22 -0700389 iree::tooling::run_module
Marius Brehler1d617e32020-03-06 15:26:33 -0800390 iree::vm
Ben Vanikb189c6e2021-06-18 13:19:15 -0700391 DATA
Stella Laurenzo74b04b72022-03-02 10:21:11 -0800392 ${IREE_LLD_TARGET}
Lei Zhang0d281b72020-06-01 20:00:23 -0400393 HOSTONLY
Scott Todd45f11372023-05-02 12:01:39 -0700394 SETUP_INSTALL_RPATH
Stella Laurenzo15c306f2023-12-28 19:03:20 -0800395 INSTALL_COMPONENT IREETools-Compiler
Marius Brehler1d617e32020-03-06 15:26:33 -0800396 )
Geoffrey Martin-Nobleb1bc0382021-01-06 11:58:38 -0800397
Ben Vanike98a03b2022-09-23 14:17:05 -0700398 # Ensure FileCheck and associated binaries get built. Tests don't have
399 # dependencies in CMake because they aren't targets. So until we fix that, we
400 # just force this to get built.
Geoffrey Martin-Noble435c2702022-01-24 15:56:56 -0800401 # Limiting this to when IREE_BUILD_TESTS is set prevents the installation
402 # below, which we use for cross-platform testing.
403 set_target_properties(FileCheck PROPERTIES EXCLUDE_FROM_ALL OFF)
Ben Vanike98a03b2022-09-23 14:17:05 -0700404 set_target_properties(not PROPERTIES EXCLUDE_FROM_ALL OFF)
Scott Toddde426de2023-01-13 08:26:02 -0800405elseif(NOT IREE_HOST_BIN_DIR)
Scott Todd20d746a2023-01-12 09:11:59 -0800406 message(STATUS
407 "*Not* building or importing IREE's compiler tools.\n "
Scott Toddde426de2023-01-13 08:26:02 -0800408 "Set IREE_BUILD_COMPILER to build them or IREE_HOST_BIN_DIR to "
Scott Todd20d746a2023-01-12 09:11:59 -0800409 "import them.")
410endif()