From 91f1c3b7aa5c92f73dfa5e07262bcde5668e2eca Mon Sep 17 00:00:00 2001 From: Tarry Singh Date: Thu, 30 Oct 2025 09:01:36 +0000 Subject: [PATCH] pjrt/cpu: fix compilation when CPU is absent by ensuring CcCompilationContext is non-empty for Zig modules accessing the c module --- runtimes/cpu/BUILD.bazel | 1 + 1 file changed, 1 insertion(+) diff --git a/runtimes/cpu/BUILD.bazel b/runtimes/cpu/BUILD.bazel index 40760fd..04156da 100644 --- a/runtimes/cpu/BUILD.bazel +++ b/runtimes/cpu/BUILD.bazel @@ -20,6 +20,7 @@ config_setting( cc_library( name = "empty", + defines = ["ZML_RUNTIME_CPU_DISABLED"], ) copy_to_directory(