diff --git a/classes/bazel.bbclass b/classes/bazel.bbclass
index 43e2c9c..085eff1 100644
--- a/classes/bazel.bbclass
+++ b/classes/bazel.bbclass
@@ -85,11 +85,11 @@ def bazel_get_flags(d):
 
     if d.getVar("BAZEL_JOBS"):
         flags += "# From BAZEL_JOBS\n"
-        flags += "build --jobs=%s --local_cpu_resources=%s\n" % (d.getVar("BAZEL_JOBS"), d.getVar("BAZEL_JOBS"))
+        flags += "build --jobs=%s --local_resources=cpu=%s\n" % (d.getVar("BAZEL_JOBS"), d.getVar("BAZEL_JOBS"))
 
     if d.getVar("BAZEL_MEM"):
         flags += "# From BAZEL_MEM\n"
-        flags += "build --local_ram_resources=%s\n" % (d.getVar("BAZEL_MEM"))
+        flags += "build --local_resources=memory=%s\n" % (d.getVar("BAZEL_MEM"))
 
     return flags
 
diff --git a/recipes-devtools/bazel/bazel-native_7.7.0.bb b/recipes-devtools/bazel/bazel-native_7.7.0.bb
index 042f456..3b81be5 100644
--- a/recipes-devtools/bazel/bazel-native_7.7.0.bb
+++ b/recipes-devtools/bazel/bazel-native_7.7.0.bb
@@ -35,8 +35,8 @@ EXTRA_BAZEL_ARGS = " \
     --distdir=${TS_DL_DIR} \
     --color=no \
     ${@oe.utils.conditional("BAZEL_JOBS", "", "", "--jobs=${BAZEL_JOBS}", d )} \
-    ${@oe.utils.conditional("BAZEL_JOBS", "", "", "--local_cpu_resources=${BAZEL_JOBS}", d )} \
-    ${@oe.utils.conditional("BAZEL_MEM", "", "", "--local_ram_resources=${BAZEL_MEM}", d )} \
+    ${@oe.utils.conditional("BAZEL_JOBS", "", "", "--local_resources=cpu=${BAZEL_JOBS}", d )} \
+    ${@oe.utils.conditional("BAZEL_MEM", "", "", "--local_resources=memory=${BAZEL_MEM}", d )} \
 "
 
 do_compile[network] = "1"
