File tree Expand file tree Collapse file tree 5 files changed +35
-7
lines changed Expand file tree Collapse file tree 5 files changed +35
-7
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,15 @@ add_proxy_header_library(
183
183
libc.include.link
184
184
)
185
185
186
+ add_proxy_header_library (
187
+ locale_macros
188
+ HDRS
189
+ locale_macros.h
190
+ FULL_BUILD_DEPENDS
191
+ libc.include.llvm-libc-macros.locale_macros
192
+ libc.include.locale
193
+ )
194
+
186
195
add_proxy_header_library (
187
196
sys_auxv_macros
188
197
HDRS
Original file line number Diff line number Diff line change
1
+ //===-- Definition of macros from locale.h --------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ //
7
+ //===----------------------------------------------------------------------===//
8
+
9
+ #ifndef LLVM_LIBC_HDR_LOCALE_MACROS_H
10
+ #define LLVM_LIBC_HDR_LOCALE_MACROS_H
11
+
12
+ #ifdef LIBC_FULL_BUILD
13
+
14
+ #include "include/llvm-libc-macros/locale-macros.h"
15
+
16
+ #else // Overlay mode
17
+
18
+ #error "macros not available in overlay mode"
19
+
20
+ #endif // LLVM_LIBC_FULL_BUILD
21
+
22
+ #endif // LLVM_LIBC_HDR_LOCALE_MACROS_H
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ add_libc_test(
7
7
SRCS
8
8
locale_test.cpp
9
9
DEPENDS
10
- libc.include.locale
10
+ libc.hdr.locale_macros
11
11
libc.src.locale.newlocale
12
12
libc.src.locale.uselocale
13
13
libc.src.locale.freelocale
@@ -20,6 +20,6 @@ add_libc_test(
20
20
SRCS
21
21
localeconv_test.cpp
22
22
DEPENDS
23
- libc.include.locale
23
+ libc.hdr.locale_macros
24
24
libc.src.locale.localeconv
25
25
)
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
+ #include " hdr/locale_macros.h"
9
10
#include " src/locale/freelocale.h"
10
11
#include " src/locale/newlocale.h"
11
12
#include " src/locale/uselocale.h"
12
-
13
13
#include " test/UnitTest/Test.h"
14
14
15
- #include " include/llvm-libc-macros/locale-macros.h"
16
-
17
15
TEST (LlvmLibcLocale, DefaultLocale) {
18
16
locale_t new_locale = LIBC_NAMESPACE::newlocale (LC_ALL, " C" , nullptr );
19
17
EXPECT_NE (new_locale, static_cast <locale_t >(nullptr ));
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- #include " include/llvm-libc-macros/locale-macros .h"
9
+ #include " hdr/locale_macros .h"
10
10
#include " src/locale/localeconv.h"
11
-
12
11
#include " test/UnitTest/Test.h"
13
12
14
13
TEST (LlvmLibcLocale, DefaultLocale) {
You can’t perform that action at this time.
0 commit comments