Testing: issue with clang sanitize compile flags

This commit is contained in:
Shahram Najm 2016-11-21 11:48:07 +00:00
parent 9c1e18137e
commit 6007e6b205
2 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,8 @@ if command -v pkg-config >/dev/null 2>&1; then
COMPILER=`pkg-config --variable=CC $PKGCONFIG_FILE` COMPILER=`pkg-config --variable=CC $PKGCONFIG_FILE`
FLAGS_COMPILER=`pkg-config --cflags $PKGCONFIG_FILE` FLAGS_COMPILER=`pkg-config --cflags $PKGCONFIG_FILE`
FLAGS_LINKER=`pkg-config --libs $PKGCONFIG_FILE` FLAGS_LINKER=`pkg-config --libs $PKGCONFIG_FILE`
#CMAKE_C_FLAGS=`grep CMAKE_C_FLAGS:STRING $CACHE_FILE | cut -d'=' -f2-`
#FLAGS_COMPILER="$FLAGS_COMPILER $CMAKE_C_FLAGS"
# The pkgconfig variables refer to the install directory. Change to build dir # The pkgconfig variables refer to the install directory. Change to build dir
BUILD_DIR=`grep -w eccodes_BINARY_DIR $CACHE_FILE | cut -d'=' -f2` BUILD_DIR=`grep -w eccodes_BINARY_DIR $CACHE_FILE | cut -d'=' -f2`

View File

@ -35,6 +35,8 @@ if command -v pkg-config >/dev/null 2>&1; then
COMPILER=`pkg-config --variable=CC $PKGCONFIG_FILE` COMPILER=`pkg-config --variable=CC $PKGCONFIG_FILE`
FLAGS_COMPILER=`pkg-config --cflags $PKGCONFIG_FILE` FLAGS_COMPILER=`pkg-config --cflags $PKGCONFIG_FILE`
FLAGS_LINKER=`pkg-config --libs $PKGCONFIG_FILE` FLAGS_LINKER=`pkg-config --libs $PKGCONFIG_FILE`
#CMAKE_C_FLAGS=`grep CMAKE_C_FLAGS:STRING $CACHE_FILE | cut -d'=' -f2-`
#FLAGS_COMPILER="$FLAGS_COMPILER $CMAKE_C_FLAGS"
# The pkgconfig variables refer to the install directory. Change to build dir # The pkgconfig variables refer to the install directory. Change to build dir
BUILD_DIR=`grep -w eccodes_BINARY_DIR $CACHE_FILE | cut -d'=' -f2` BUILD_DIR=`grep -w eccodes_BINARY_DIR $CACHE_FILE | cut -d'=' -f2`