Address #6631 by reducing optimization level

for CGO code.

Signed-off-by: Jacques Grove <aquarapid@gmail.com>
This commit is contained in:
Jacques Grove 2020-08-26 13:34:12 -07:00
Родитель a0c39a68bb
Коммит 897ecafcc8
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -37,6 +37,12 @@ ifdef VT_EXTRA_BUILD_FLAGS
export EXTRA_BUILD_FLAGS := $(VT_EXTRA_BUILD_FLAGS)
endif
# We now have CGO code in the build which throws warnings with newer gcc builds.
# See: https://github.com/mattn/go-sqlite3/issues/803
# Work around by dropping optimization level from default -O2.
# Safe, since this code isn't performance critical.
export CGO_CFLAGS := -O1
embed_config:
cd go/vt/mysqlctl
go run github.com/GeertJohan/go.rice/rice embed-go