Skip to content

Commit c35137a

Browse files
authored
Revert some changes for Windows build since they seem unnecessary (#2847)
Part of #2824 --------- Signed-off-by: Anatoly Myachev <[email protected]>
1 parent 6ab8757 commit c35137a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

CMakeLists.txt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,7 @@ endif()
9393
# Compiler flags
9494
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
9595
if(NOT MSVC)
96-
if(NOT WIN32)
97-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__STDC_FORMAT_MACROS -fPIC")
98-
else()
99-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__STDC_FORMAT_MACROS -Wno-deprecated")
100-
endif()
96+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__STDC_FORMAT_MACROS -fPIC -std=gnu++17")
10197
else()
10298
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__STDC_FORMAT_MACROS")
10399
endif()
@@ -168,8 +164,7 @@ include_directories(${PROJECT_BINARY_DIR}/include) # Tablegen'd files
168164
include_directories(${PROJECT_SOURCE_DIR}/third_party)
169165
include_directories(${PROJECT_BINARY_DIR}/third_party) # Tablegen'd files
170166

171-
link_directories(${LLVM_LIBRARY_DIR})
172-
167+
# link_directories(${LLVM_LIBRARY_DIR})
173168
add_subdirectory(include)
174169
add_subdirectory(lib)
175170

0 commit comments

Comments
 (0)