Skip to content

Commit ea1edad

Browse files
authored
Fix x64 Windows builds break. (#917)
* Add /bigobj flag to fix x64 Windows compile error for rewriter tool. * Add additional file with compile time error. * Add missing include.
1 parent 01814aa commit ea1edad

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

clang/lib/CConv/ArrayBoundsInferenceConsumer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "clang/CConv/ArrayBoundsInferenceConsumer.h"
1616
#include "clang/CConv/ConstraintResolver.h"
1717
#include <sstream>
18+
#include <cctype>
1819

1920
static std::set<std::string> LengthVarNamesPrefixes = {"len", "count",
2021
"size", "num",

clang/lib/CConv/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ set( LLVM_LINK_COMPONENTS
33
Option
44
Support
55
)
6+
7+
if (MSVC)
8+
set_source_files_properties(RewriteUtils.cpp PROPERTIES COMPILE_FLAGS /bigobj)
9+
set_source_files_properties(ArrayBoundsInferenceConsumer.cpp PROPERTIES COMPILE_FLAGS /bigobj)
10+
endif()
11+
612
add_clang_library(CConv
713
ABounds.cpp
814
AVarBoundsInfo.cpp

0 commit comments

Comments
 (0)