Skip to content

Commit bec4906

Browse files
committed
move define '_BUILD_STD_MODULE' to 'generate_libcxx_cppm_in.py'
1 parent 74d49fc commit bec4906

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

libcxx/modules/std.cppm.in

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
//
88
//===----------------------------------------------------------------------===//
99

10+
#ifdef _LIBCPP_ABI_VCRUNTIME
11+
#define _BUILD_STD_MODULE
12+
#endif
13+
1014
// WARNING, this entire header is generated by
1115
// utils/generate_libcxx_cppm_in.py
1216
// DO NOT MODIFY!
@@ -51,9 +55,6 @@ module;
5155
#include <cstdio>
5256
#include <cstdlib>
5357
#include <cstring>
54-
#ifdef _LIBCPP_ABI_VCRUNTIME
55-
#define _BUILD_STD_MODULE
56-
#endif
5758
#include <ctime>
5859
#include <cuchar>
5960
#include <cwchar>

libcxx/utils/generate_libcxx_cppm_in.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ def write_file(module):
2525
//
2626
//===----------------------------------------------------------------------===//
2727
28+
#ifdef _LIBCPP_ABI_VCRUNTIME
29+
#define _BUILD_STD_MODULE
30+
#endif
31+
2832
// WARNING, this entire header is generated by
2933
// utils/generate_libcxx_cppm_in.py
3034
// DO NOT MODIFY!

0 commit comments

Comments
 (0)