Skip to content

Commit febc5ab

Browse files
infiWangkxxt
authored andcommitted
runtime: add missing stdint header
Co-authored-by: Levi Zim <[email protected]>
1 parent a00c3a3 commit febc5ab

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff --git a/include/tfrt/support/forward_decls.h b/include/tfrt/support/forward_decls.h
2+
index c3a42504..eeef33ec 100644
3+
--- a/include/tfrt/support/forward_decls.h
4+
+++ b/include/tfrt/support/forward_decls.h
5+
@@ -20,6 +20,7 @@
6+
#ifndef TFRT_SUPPORT_FORWARD_DECLS_H_
7+
#define TFRT_SUPPORT_FORWARD_DECLS_H_
8+
9+
+#include <cstdint>
10+
#include <cstddef>
11+
#include <memory>
12+
13+
diff --git a/include/tfrt/support/raw_coding.h b/include/tfrt/support/raw_coding.h
14+
index ba7d6357..1ca6c74c 100644
15+
--- a/include/tfrt/support/raw_coding.h
16+
+++ b/include/tfrt/support/raw_coding.h
17+
@@ -21,6 +21,7 @@
18+
#ifndef TFRT_SUPPORT_RAW_CODING_H_
19+
#define TFRT_SUPPORT_RAW_CODING_H_
20+
21+
+#include <cstdint>
22+
#include <cstring>
23+
24+
#include "tfrt/support/forward_decls.h"

third_party/tf_runtime/workspace.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ def repo():
2020
},
2121
# A patch file can be provided for atomic commits to both TF and TFRT.
2222
# The job that bumps the TFRT_COMMIT also resets patch_file to 'None'.
23-
patch_file = None,
23+
patch_file = [ "//third_party:tf_runtime/add_cstdint.patch", ],
2424
)

0 commit comments

Comments
 (0)