diff --git a/BUILD.gn b/BUILD.gn index 74728853d5..a2717b709d 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -409,12 +409,7 @@ group("host_tools") { ] if (pw_rust_ENABLE_EXPERIMENTAL_BUILD) { - deps += [ - "$dir_pw_rust/examples/host_executable:hello($dir_pigweed/targets/host:host_clang_debug)", - "$dir_pw_rust/examples/host_executable:proc_macro($dir_pigweed/targets/host:host_clang_debug)", - "$dir_pw_rust/examples/host_executable:test_hello($dir_pigweed/targets/host:host_clang_debug)", - "$dir_pw_rust/examples/host_executable:test_proc_macro($dir_pigweed/targets/host:host_clang_debug)", - ] + deps += [ "$dir_pw_rust/examples/host_executable:host_executable($dir_pigweed/targets/host:host_clang_debug)" ] } } diff --git a/pw_rust/examples/host_executable/BUILD.gn b/pw_rust/examples/host_executable/BUILD.gn index 899b49a18a..73d8dec314 100644 --- a/pw_rust/examples/host_executable/BUILD.gn +++ b/pw_rust/examples/host_executable/BUILD.gn @@ -16,6 +16,15 @@ import("//build_overrides/pigweed.gni") import("$dir_pw_build/target_types.gni") +group("host_executable") { + deps = [ + ":hello", + ":proc_macro", + ":test_hello", + ":test_proc_macro", + ] +} + hello_sources = [ "main.rs", "other.rs",