Skip to content

Commit 0b62f8a

Browse files
fix
1 parent 8fd8ba1 commit 0b62f8a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

libc/hdr/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,13 @@ add_proxy_header_library(
224224
)
225225

226226
# offsetof is a macro inside compiler resource header stddef.h
227-
# defining it directly as a header library
228-
add_header_library(offsetof_macros HDRS offsetof_macros.h)
227+
add_proxy_header_library(
228+
offsetof_macros
229+
HDRS
230+
offsetof_macros.h
231+
FULL_BUILD_DEPENDS
232+
libc.include.llvm-libc-macros.offsetof_macro
233+
)
229234

230235
add_subdirectory(types)
231236
add_subdirectory(func)

libc/hdr/offsetof_macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#ifdef LIBC_FULL_BUILD
1313

14-
#include "include/llvm-libc-macros/offsetof-macros.h"
14+
#include "include/llvm-libc-macros/offsetof-macro.h"
1515

1616
#else // Overlay mode
1717

0 commit comments

Comments
 (0)