Skip to content

Commit cb62478

Browse files
committed
Added some includes that are needed for different STLs
1 parent 1a88eaa commit cb62478

File tree

4 files changed

+10
-16
lines changed

4 files changed

+10
-16
lines changed

.gitignore

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,2 @@
11
# Project exclude paths
2-
/cmake-build-debug-clang/
3-
/cmake-build-debug-wsl/
4-
/cmake-build-debug/
5-
/cmake-build-memorysanitizer/
6-
/cmake-build-undefinedsanitizer/
7-
/cmake-build-addresssanitizer/
8-
/cmake-build-leaksanitizer/
9-
/cmake-build-debug-wsl-clang/
2+
/cmake-build-*/

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ include_directories(SYSTEM 3rdParty)
2626
include_directories(src)
2727
message(STATUS ${LLVM_INCLUDE_DIRS})
2828
add_definitions(${LLVM_DEFINITIONS})
29-
list(APPEND CMAKE_CXX_FLAGS "-pedantic -Wall -Wextra -fdiagnostics-color=always")
29+
if (NOT MSVC)
30+
list(APPEND CMAKE_CXX_FLAGS "-pedantic -Wall -Wextra -fdiagnostics-color=always")
31+
else ()
32+
add_compile_options(/w)
33+
endif ()
3034

3135
llvm_map_components_to_libnames(llvm_libs Core ExecutionEngine MC MCJIT Object OrcJit Option RuntimeDyld Support native)
3236

src/CompilerCore/C/Lexer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#include <algorithm>
44
#include <regex>
5+
#include <sstream>
6+
#include <cctype>
57

68
namespace
79
{

src/CompilerCore/C/Semantics.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
1-
#include <utility>
2-
3-
#include <utility>
4-
5-
#include <utility>
6-
71
#include "Semantics.hpp"
82

93
#include "ConstantEvaluator.hpp"
104
#include "Syntax.hpp"
11-
125
#include <algorithm>
136
#include <map>
7+
#include <optional>
148
#include <sstream>
159
#include <utility>
1610
#include <cassert>
11+
#include <array>
1712

1813
const OpenCL::Semantics::Type& OpenCL::Semantics::ArrayType::getType() const
1914
{

0 commit comments

Comments
 (0)