Skip to content

Commit 29608ef

Browse files
author
Tor Didriksen
committed
Merge branch 'mysql-8.0' into mysql-trunk
Change-Id: I05dd677000fed8778e6d9788545bf06df6a37027
2 parents e63413e + dd02eb4 commit 29608ef

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

cmake/bison.cmake

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,18 @@ IF(WIN32 AND NOT DEFINED BISON_EXECUTABLE)
9898
NO_DEFAULT_PATH
9999
PATHS ${NATIVE_BISON_PATHS}
100100
)
101+
# Look for Flex also, we may need it later.
102+
IF(BISON_EXECUTABLE)
103+
FIND_PROGRAM(FLEX_EXECUTABLE
104+
NAMES flex win-flex win_flex
105+
NO_DEFAULT_PATH
106+
PATHS ${NATIVE_BISON_PATHS}
107+
)
108+
FIND_PATH(FLEX_INCLUDE_DIR FlexLexer.h
109+
NO_DEFAULT_PATH
110+
PATHS ${NATIVE_BISON_PATHS}
111+
)
112+
ENDIF()
101113
ENDIF()
102114

103115
FIND_PACKAGE(BISON)

sql/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,13 @@ IF(WIN32 AND NOT WIN32_CLANG)
894894
COMPILE_FLAGS "/d2OptimizeHugeFunctions")
895895
ENDIF()
896896

897+
# 'yyexhtaustedlab': unreferenced label
898+
IF(WIN32 AND NOT WIN32_CLANG)
899+
ADD_COMPILE_FLAGS(${CMAKE_CURRENT_BINARY_DIR}/sql_yacc.cc
900+
${CMAKE_CURRENT_BINARY_DIR}/sql_hints.yy.cc
901+
COMPILE_FLAGS "/wd4102")
902+
ENDIF()
903+
897904
# Common for all versions of GCC/Clang
898905
# Bison output uses undefined symbols in #if checks
899906
IF(MY_COMPILER_IS_GNU_OR_CLANG)

0 commit comments

Comments
 (0)