diff options
| author | Matt <msta@google.com> | 2025-11-03 13:49:31 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-03 13:49:31 +1100 |
| commit | d7e44dc6a2067403509315d3fb4b20a9c6a68249 (patch) | |
| tree | 553eb33d414f19251adfc785cfa0551e9ad15164 /clang/lib/Frontend/CompilerInvocation.cpp | |
| parent | 32938ffc710b941c68c1b40b07bd456801d3434a (diff) | |
| download | llvm-d7e44dc6a2067403509315d3fb4b20a9c6a68249.zip llvm-d7e44dc6a2067403509315d3fb4b20a9c6a68249.tar.gz llvm-d7e44dc6a2067403509315d3fb4b20a9c6a68249.tar.bz2 | |
[libcxx][modules] Fix missing includes for windows (#158781)
Previously, I was getting the following error when attempting to compile
libc++ on windows with modules enabled.
```
While building module 'std':
In file included from <module-includes>:1:
In file included from gen/third_party/libc++/src/include/algorithm:1865:
In file included from gen/third_party/libc++/src/include/__algorithm/inplace_merge.h:28:
In file included from gen/third_party/libc++/src/include/__memory/unique_temporary_buffer.h:17:
In file included from gen/third_party/libc++/src/include/__memory/allocator.h:19:
gen/third_party/libc++/src/include/__new/allocate.h(40,73): error:
declaration of 'align_val_t' must be imported from module
'sys_stage1.sysroot_vcruntime_new_h' before it is required
40 | return static_cast<_Tp*>(__builtin_operator_new(__size, static_cast<align_val...
| ^
../../third_party/depot_tools/win_toolchain/vs_files/e4305f407e/VC/Tools/MSVC/14.44.35207/include/vcruntime_new.h(27,33): note:
declaration here is not visible
27 | _VCRT_EXPORT_STD enum class align_val_t : size_t {};
| ^
```
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
