| 1 |
diff --git a/python/private/py_executable.bzl b/python/private/py_executable.bzl |
| 2 |
index 2813d010..3c5a5d7a 100644 |
| 3 |
--- a/python/private/py_executable.bzl |
| 4 |
+++ b/python/private/py_executable.bzl |
| 5 |
@@ -1362,6 +1362,17 @@ def _write_build_data(ctx): |
| 6 |
name = ctx.label.name + ".build_data.txt", |
| 7 |
root = ctx.bin_dir, |
| 8 |
) |
| 9 |
+ if not is_stamping_enabled(ctx): |
| 10 |
+ ctx.actions.write( |
| 11 |
+ output = build_data, |
| 12 |
+ content = "\n".join([ |
| 13 |
+ "TARGET {}".format(str(ctx.label)), |
| 14 |
+ "CONFIG_MODE {}".format("EXEC" if _is_tool_config(ctx) else "TARGET"), |
| 15 |
+ "STAMPED FALSE", |
| 16 |
+ "", |
| 17 |
+ ]), |
| 18 |
+ ) |
| 19 |
+ return build_data |
| 20 |
|
| 21 |
action_args = ctx.actions.args() |
| 22 |
writer_file = ctx.files._build_data_writer[0] |