Remove -Werror to use a later version of the toolchain
This commit is contained in:
parent
07ac6a5cf4
commit
125919295d
2
deps/easy/CMakeLists.txt
vendored
2
deps/easy/CMakeLists.txt
vendored
@ -51,7 +51,7 @@ target_compile_options(easy_base
|
||||
INTERFACE
|
||||
-D_GLIBCXX_USE_CXX11_ABI=0 -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
|
||||
${MARCH_CFLAGS} ${MTUNE_CFLAGS}
|
||||
$<$<COMPILE_LANGUAGE:C>:-g -Wall -Werror -fPIC ${EASY_CC_WNO}>
|
||||
$<$<COMPILE_LANGUAGE:C>:-g -Wall -fPIC ${EASY_CC_WNO}>
|
||||
)
|
||||
|
||||
target_link_libraries(easy_base
|
||||
|
@ -15,9 +15,13 @@ TEMP_FILE=$(mktemp)
|
||||
BISON_VERSION=`bison -V| grep 'bison (GNU Bison)'|awk '{ print $4;}'`
|
||||
NEED_VERSION='2.4.1'
|
||||
|
||||
if [ "$BISON_VERSION" != "$NEED_VERSION" ]; then
|
||||
echo "bison version not match, please use bison-$NEED_VERSION"
|
||||
exit 1
|
||||
# generate sql_parser
|
||||
bison -v -d ../../../src/sql/parser/sql_parser_mysql_mode.y -o ../../../src/sql/parser/sql_parser_mysql_mode_tab.c
|
||||
BISON_RETURN="$?"
|
||||
if [ $BISON_RETURN -ne 0 ]
|
||||
then
|
||||
echo Compile error[$BISON_RETURN], abort.
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cat ../../../src/sql/parser/sql_parser_mysql_mode.y >> $TEMP_FILE
|
||||
|
Loading…
x
Reference in New Issue
Block a user